How to run unit tests?How does Tezos voting process work in practice?How can I write tests for my smart...
How to Build a List from Separate Lists
How can I give a Ranger advantage on a check due to Favored Enemy without spoiling the story for the player?
What could cause an entire planet of humans to become aphasic?
When distributing a Linux kernel driver as source code, what's the difference between Proprietary and GPL license?
Is it possible to narrate a novel in a faux-historical style without alienating the reader?
Distribution of sum of independent exponentials with random number of summands
Is Screenshot Time-tracking Common?
In the Lost in Space intro why was Dr. Smith actor listed as a special guest star?
How to purchase a drop bar bike that will be converted to flat bar?
What is formjacking?
Can I do anything else with aspersions other than cast them?
Why is Shelob considered evil?
What is an explicit bijection in combinatorics?
Integral problem. Unsure of the approach.
Coworker asking me to not bring cakes due to self control issue. What should I do?
Why does this quiz question say that protons and electrons do not combine to form neutrons?
How can I differentiate duration vs starting time
Including proofs of known theorems in master's thesis
Boss asked me to sign a resignation paper without a date on it along with my new contract
Determinant of 3x3 matrix by cofactor expansion
How many copper coins fit inside a cubic foot?
How to deal with an underperforming colleague?
What happens if both players misunderstand the game state until it's too late?
Have the UK Conservatives lost the working majority and if so, what does this mean?
How to run unit tests?
How does Tezos voting process work in practice?How can I write tests for my smart contracts?
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
add a comment |
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
add a comment |
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
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
voting testing codebase
asked 3 hours ago
EzyEzy
1,896325
1,896325
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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).
Awesome will try that. Do i need to install dune separately ?
– Ezy
2 hours ago
If you have built tezos, you already havedune
. Maybe you need to runeval $(opam env)
for your shell to "see" it.
– Seb Mondet
2 hours ago
add a comment |
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
.
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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).
Awesome will try that. Do i need to install dune separately ?
– Ezy
2 hours ago
If you have built tezos, you already havedune
. Maybe you need to runeval $(opam env)
for your shell to "see" it.
– Seb Mondet
2 hours ago
add a comment |
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).
Awesome will try that. Do i need to install dune separately ?
– Ezy
2 hours ago
If you have built tezos, you already havedune
. Maybe you need to runeval $(opam env)
for your shell to "see" it.
– Seb Mondet
2 hours ago
add a comment |
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).
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).
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 havedune
. Maybe you need to runeval $(opam env)
for your shell to "see" it.
– Seb Mondet
2 hours ago
add a comment |
Awesome will try that. Do i need to install dune separately ?
– Ezy
2 hours ago
If you have built tezos, you already havedune
. Maybe you need to runeval $(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
add a comment |
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
.
add a comment |
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
.
add a comment |
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
.
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
.
answered 1 hour ago
EugenEugen
1444
1444
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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