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

Refactor tests #97

Merged
merged 2 commits into from
Feb 27, 2025
Merged

Refactor tests #97

merged 2 commits into from
Feb 27, 2025

Conversation

benma
Copy link
Contributor

@benma benma commented Feb 27, 2025

No description provided.

@benma benma force-pushed the refactor-tests branch 2 times, most recently from 7de3b0e to 35567a5 Compare February 27, 2025 16:25
Since Rust 1.85 with async closures is now stable, we can use it to
split our one big test function into many small ones, making the test
setup sane again:

- don't need to manually call tests, the test tag is enough.
- can use normal tooling on tests, i.e. run specific tests instead of
  all

Since the simulators occupy the same port at the moment, we need to
run all tests in one thread (`--test-threads 1`) so multiple
simulators don't launch at the same time.

Fixes #96
The test output was almost impossible to read with all the simulator
output being dumped alongside the test output.

Now this is hidden. With `--nocapture` it is shown indented below each
test.
@benma benma merged commit bbca9df into master Feb 27, 2025
6 checks passed
@benma benma deleted the refactor-tests branch February 27, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant