Questions tagged [testing]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
12 views

How can I save the gas cost of operations when running contracts in sandbox pytest?

I am testing smart contracts in sandbox mode using python scripts. I want to be able to store how much an operation cost. So for example when I get the output of a contract origination after baking a ...
1
vote
1answer
35 views

How do you set the time of a transfer when testing contracts with SmartPy?

Previously, to set the (virtual) time a transaction happened in SmartPy I used the flag now when running a command like run. Now it seems to cause an error (seems like something changed in an update). ...
0
votes
1answer
13 views

What is causes “Unexpected seed's nonce commitment in block header” when baking in sandbox mode?

I'm running some tests on tezos sandbox mode and in one of the commands for baking a new block, sometimes I get the following error: Unexpected seed's nonce commitment in block header. The error doesn'...
1
vote
1answer
40 views

Test vectors for calculating operation hash

I am writing code to calculate operation hash from the raw hex and I would like some test vectors to verify my code. Where can I find that?
1
vote
1answer
29 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
31 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
37 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
74 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
22 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
948 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
24 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
40 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
163 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
131 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 ...