Questions tagged [testing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
26 views

What exactly is tested during Testing Phase of the governance cycle?

During the 48h cycle with the fork chain, what are bakers participating in the test doing? They are simply processing the same transactions that mainchain are producing using the new protocol looking ...
2
votes
1answer
29 views

Get number of entries in bigmap

I am currently writing tests for a contract and for one of those tests, I would like to get the number of entries in a bigmap field of the contract's storage. I am using JavaScript with Taquito and ...
2
votes
0answers
35 views

How to set `contract` as input argument

I have a method Token_metadata_registry which takes contract(address) as input parameter and I would like to call that method from ligo dry-run. How do I do that? ligo dry-run contracts/main/fa2.ligo ...
3
votes
1answer
71 views

How do I call the FA2 balance_of endpoint through Truffle?

I have written a contract to implement FA2 and I have a Truffle/JavaScript setup to test this contract while running against a sandboxed node. I can test the transfer endpoint and the update_operators ...
1
vote
1answer
19 views

How do I change the originating address in truffle?

My truffle-config.js has const { alice } = require('./scripts/sandbox/accounts'); module.exports = { contracts_directory: "./contracts/main", networks: { development: { host: &...
0
votes
0answers
25 views

Is there a minimum number of tokens I need to have to bake on Carthagenet?

I have gotten about 236 odd tokens from the faucet and now I am about to register to bake on my node. The problem is I can't seem to find any mention on the minimum number of tokens required to bake ...
5
votes
3answers
831 views

Testing frameworks for tezos smart-contracts

I did few smart contracts with Ligo, but now looking for more productionize setup. Is there a test framework one can use for Tezos? I'm looking for something like waffle + mocha in Ethereum, or ...
0
votes
1answer
22 views

Error while setting up Tezster

While running the command: sudo tezster setup Encountered the error, sudo tezster setup [sudo] password for aditya: /usr/local/lib/node_modules/tezster/tezster.js:108 .action(async function(){ ...
3
votes
0answers
24 views

Testnet participation rate?

The current athens amendment proposal has now entered the testing phase. Where can i monitor what is the participation rate in this phase in terms of number of bakers and full nodes running it ?
4
votes
1answer
39 views

Testnet Fork during Testing Period (Cycles 17-24)

Why is the testnet fork during the Testing Period (Cycles 17-24) only run for 48 hours as compared to the entire duration of 8 cycles of that phase? Wouldn't it make more sense to test for a longer ...
5
votes
2answers
158 views

How to run unit tests?

I have downloaded the source code and built my node from scratch. What command should I run in order to double check that all unit tests run fine? In particular I am interested in running the unit ...
13
votes
2answers
127 views

How can I write tests for my smart contracts?

I like doing TDD and would like to build up a test suite around my contract code. I have been looking at both ReasonML and Liquidity but neither seems to have a great testing story yet. Does it make ...