How to run unit tests?How does Tezos voting process work in practice?How can I write tests for my smart...

Does the double-bladed scimitar's special attack let you use your ability modifier for the damage of the attack?

Do the speed limit reductions due to pollution also apply to electric cars in France?

What happens if both players misunderstand the game state until it's too late?

Is there a way to pause a running process on Linux systems and resume later?

Proving the Borel-Cantelli Lemma

Can a Hydra make multiple opportunity attacks at once?

What is an efficient way to digitize a family photo collection?

Is there a name for this series?

Does しかたない imply disappointment?

Will the duration of traveling to Ceres using the same tech developed for going to Mars be proportional to the distance to go to Mars or not?

Why don't programs completely uninstall (remove all their files) when I remove them?

Was the Soviet N1 really capable of sending 9.6 GB/s of telemetry?

Identical projects by students at two different colleges: still plagiarism?

Why is Shelob considered evil?

Sets which are both Sum-free and Product-free.

How can guns be countered by melee combat without raw-ability or exceptional explanations?

Is there a configuration of the 8-puzzle where locking a tile makes it harder?

Multiple null checks in Java 8

How many copper coins fit inside a cubic foot?

How can I differentiate duration vs starting time

Why is it that Bernie Sanders always called a "socialist"?

What really causes series inductance of capacitors?

Can you say "leftside right"?

Partial derivative with respect to three variables



How to run unit tests?


How does Tezos voting process work in practice?How can I write tests for my smart contracts?













1















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










share|improve this question



























    1















    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










    share|improve this question

























      1












      1








      1








      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










      share|improve this question














      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







      voting testing codebase






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 3 hours ago









      EzyEzy

      1,896325




      1,896325






















          2 Answers
          2






          active

          oldest

          votes


















          3














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






          share|improve this answer
























          • Awesome will try that. Do i need to install dune separately ?

            – Ezy
            2 hours ago











          • 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
            2 hours ago





















          1














          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.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "698"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            noCode: true, onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftezos.stackexchange.com%2fquestions%2f557%2fhow-to-run-unit-tests%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            3














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






            share|improve this answer
























            • Awesome will try that. Do i need to install dune separately ?

              – Ezy
              2 hours ago











            • 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
              2 hours ago


















            3














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






            share|improve this answer
























            • Awesome will try that. Do i need to install dune separately ?

              – Ezy
              2 hours ago











            • 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
              2 hours ago
















            3












            3








            3







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






            share|improve this answer













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







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 2 hours ago









            Seb MondetSeb Mondet

            593




            593













            • Awesome will try that. Do i need to install dune separately ?

              – Ezy
              2 hours ago











            • 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
              2 hours ago





















            • Awesome will try that. Do i need to install dune separately ?

              – Ezy
              2 hours ago











            • 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
              2 hours ago



















            Awesome will try that. Do i need to install dune separately ?

            – Ezy
            2 hours ago





            Awesome will try that. Do i need to install dune separately ?

            – Ezy
            2 hours ago













            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
            2 hours ago







            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
            2 hours ago













            1














            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.






            share|improve this answer




























              1














              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.






              share|improve this answer


























                1












                1








                1







                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.






                share|improve this answer













                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 1 hour ago









                EugenEugen

                1494




                1494






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Tezos Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftezos.stackexchange.com%2fquestions%2f557%2fhow-to-run-unit-tests%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Parapolítica Índice Antecedentes El escándalo Proceso judicial Consecuencias Véase...

                    How to remove border from elements in the last row?Targeting flex items on the last rowHow to vertically wrap...

                    Tecnologías entrañables Índice Antecedentes Desarrollo Tecnologías Entrañables en la...