Skip to main content

Questions tagged [unit-test]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
10 votes
2 answers

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
2 votes
0 answers

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
1 vote
1 answer

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

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 Its ...
waalge's user avatar
  • 403
1 vote
1 answer

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

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