5

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.

6

You 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).

| improve this answer | |
  • Awesome will try that. Do i need to install dune separately ? – Ezy Feb 22 '19 at 14:59
  • 1
    If you have built tezos, you already have dune. Maybe you need to run eval $(opam env) for your shell to "see" it. – Seb Mondet Feb 22 '19 at 15:14
4

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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.