Questions tagged [unit-test]
The unit-test tag has no usage guidance.
6 questions
1
vote
1
answer
32
views
Need to add signatures to plutus-simple-model-transaction
Any idea how to sign a transaction with multiple keys in plutus-simple-model ?
0
votes
1
answer
29
views
Simulate Minting Event In EmulatorTrace
My application has a minting script and a validator script that works together. I am using EmulatorTrace to test my application.How do i simulate a minting event in EmulatorTrace?
1
vote
1
answer
87
views
How do I test my smart-contract on Cardano
I'm from EVM background and I've started learning about Cardano lately. I was just wondering how do I write unit tests for my smart-contract written in Haskell? Since i've been doing unit testing in ...
1
vote
1
answer
67
views
Examples of testing on-chain code
There are extensive examples for the testing frameworks for contracts, ie off-chain code, for example as discussed in Lecture 8 of the plutus pioneer program https://youtu.be/zW3D2iM5uVg.
Its ...
2
votes
0
answers
49
views
Test for logError in Trace monad
How do I write a Tasty unit-test for an error that may be logged from inside the Trace monad?
import Control.Monad.Freer.Extras (logError, throwError)
trace1 :: Input -> Trace.EmulatorTrace ()
...
10
votes
2
answers
228
views
How can I write unit tests for Plutus contracts?
I'm a member of Plutus Pioneer Program. I already know about the Plutus Playground and like it very much. However, clicking all the blockchain action scenarios each time is very time-consuming, ...