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 test for voting.
Tezos Stack Exchange is a question and answer site for users, experts, and developers of the Tezos blockchain project. It only takes a minute to sign up.
Sign up to join this communityYou can run all the tests with:
dune build @runtest
if you want particular tests you need to find their "alias name"
dune build @runtest_voting.sh
is one of them (That I found with git grep runtest_vot
:), the file .gitlab-ci.yml
has many examples also).
dune
. Maybe you need to run eval $(opam env)
for your shell to "see" it.
Feb 22, 2019 at 15:14
One can go in the src/proto_alpha/lib_protocol/test
and run dune runtest
, which will execute all unit tests for the protocol alpha, including the ones for voting (those in voting.ml
).
Another test is present in src/bin_client/test/test_voting.sh
which tests the client commands related to voting.
All these tests are executed when one runs make test
.