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

extend test framework #913

Merged
merged 3 commits into from
Apr 10, 2024
Merged

Conversation

zancas
Copy link
Member

@zancas zancas commented Apr 9, 2024

In order to run the tests when I have pwd of zingolib/zingolib` that is, the crate root, I have to explicitly select the "test" feature like this:

cargo nextest run --features test

BUT if I run cd $WORKSPACE_ROOT && cargo nextest run it run just fine and picks up the tests inside zingolib/zingolib.

ChatGPT tells me that the test feature of the workspace member crate zingolib/zingolib is being picked up by "feature unification" in the workspace root.

I don't like this. cargo nextest run in the workspace root shouldn't be running all of our tests by accident.

Debugging that feature unification issue might be interesting.. but.. if it's not borken...

The point of this PR is to build out some helpful things for writing MUCH NEEDED unit-tests.

@zancas zancas requested a review from idky137 April 9, 2024 22:41
@zancas zancas changed the title organize test facilities with directory upgrade test framework Apr 9, 2024
@zancas zancas marked this pull request as ready for review April 9, 2024 22:51
@zancas zancas changed the title upgrade test framework extend test framework Apr 9, 2024
@zancas zancas marked this pull request as draft April 9, 2024 23:02
@zancas zancas marked this pull request as ready for review April 10, 2024 01:37
Copy link
Contributor

@fluidvanadium fluidvanadium left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested ack

@fluidvanadium fluidvanadium merged commit 91d5244 into zingolabs:dev Apr 10, 2024
17 checks passed
@zancas zancas deleted the extend_test_framework branch May 30, 2024 18:12
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.

2 participants