Skip to content
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

Support timing test execution #526

Closed
Tracked by #527
cptartur opened this issue Aug 28, 2023 · 0 comments
Closed
Tracked by #527

Support timing test execution #526

cptartur opened this issue Aug 28, 2023 · 0 comments
Labels
feature New feature request/description help wanted

Comments

@cptartur
Copy link
Member

cptartur commented Aug 28, 2023

When running tests, measure the running time of each test and include that time in TestCaseSummary enum (for Passed and Failed test, can be for Skipped as well for easier printing).

After running snforge, total run time of whole test suite should be displayed similarly to cargo test: Tests: 9 passed, 2 failed, 0 skipped, finished in 1.23s. print_test_summary function will need to be updated to support that.

pub(crate) fn print_test_summary(summaries: &[TestFileSummary]) {

Time of all tests will need to be added and passed to that function call in here

pretty_printing::print_test_summary(&summaries);

@github-actions github-actions bot added the new label Aug 28, 2023
@piotmag769 piotmag769 removed the new label Aug 29, 2023
@cptartur cptartur added the feature New feature request/description label Sep 5, 2023
@cptartur cptartur moved this from Triage to Backlog in Starknet foundry Sep 5, 2023
@cptartur cptartur added help wanted and removed good first issue Good for newcomers labels Oct 24, 2023
@cptartur cptartur closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2023
@github-project-automation github-project-automation bot moved this from Backlog to Done in Starknet foundry Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature request/description help wanted
Projects
Archived in project
Development

No branches or pull requests

3 participants