-
Notifications
You must be signed in to change notification settings - Fork 283
misc: add pytests.nix
dev utility
#5501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: quacumque <[email protected]>
BIN_IROHAD = "target/release/irohad"; | ||
BIN_IROHA = "target/release/iroha"; | ||
BIN_KAGAMI = "target/release/kagami"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What’s the rationale for switching to release builds? Is it to align with integration tests that use cargo install
? However, unless we’re testing non‑functional requirements, wouldn’t debug builds suffice?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, debug builds would totally suffice.
I made it to align with the integration tests. Which aren't, btw, using cargo install
anymore; they rely on target/release
bins too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be helpful to update the README.md
or CONTRIBUTING.md
with instructions on how to run the integration tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Created: #5505
# This is not a final product, so feel free to edit manually to adjust tests running or do whatever is convenient | ||
# for you right now. | ||
# | ||
# Build binaries: `cargo build --release --bins` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should the guide in thepytest/*
folder be updated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mentioned, intentionally with minimal effort
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And opened #5504
Signed-off-by: quacumque <[email protected]>
BIN_IROHAD = "target/release/irohad"; | ||
BIN_IROHA = "target/release/iroha"; | ||
BIN_KAGAMI = "target/release/kagami"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be helpful to update the README.md
or CONTRIBUTING.md
with instructions on how to run the integration tests.
Instead of setting up Python, Poetry,
requirements.txt
, setting up ENV vars, moving between directories and typing commands manually, just do:This script is intentionally simple, and serves both as a documentation and a tool to quickly modify it locally and run tests as you like (without necessarily committing changes back to the script).