Skip to main content

Questions tagged [unit-test]

The tag has no usage guidance.

1 vote
1 answer
31 views

Need to add signatures to plutus-simple-model-transaction

Any idea how to sign a transaction with multiple keys in plutus-simple-model ?
Eric's user avatar
  • 85
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?
szhang9921's user avatar
1 vote
1 answer
81 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 ...
Muhammad Usman's user avatar
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 ...
waalge's user avatar
  • 403
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 () ...
Kwaggy's user avatar
  • 400
10 votes
2 answers
223 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, ...
emesik's user avatar
  • 816