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

Conditional flags for ignore and inconclusive #141

Open
arlyon opened this issue Jan 22, 2024 · 3 comments
Open

Conditional flags for ignore and inconclusive #141

arlyon opened this issue Jan 22, 2024 · 3 comments

Comments

@arlyon
Copy link

arlyon commented Jan 22, 2024

Hi! Great library. It's become a staple for me. I have a bunch of code that is a simple 'if running on windows skip'. I would really like to be able to conditionally ignore something based on platform or any other cfg-var. Current solution is ok, however I'd really like to see the ignored tests and reasons in the run summary.

@AugustoFKL
Copy link
Contributor

@arlyon, sorry, I can take two different things you're asking for:

  • A way to use conditional compilation
  • Better information regarding the tests that were ignored and their respective reasoning.

The two are different things. Can I assume you want the prior? I mean, if the library were to support it, it would require a good way to inform it, of course.

@arlyon
Copy link
Author

arlyon commented Jan 24, 2024

Cargo test should give you nice information about ignored tasks for free if we can conditionally ignore things. The main idea is it would be nice to see when running tests how many were ignored, so we should get #2 for free if we do #1

:)

@AugustoFKL
Copy link
Contributor

I see.

Once I finish my research regarding #19, I'll look into this. Shouldn't take more than two weeks for me to have something out. I'll keep you posted.

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

No branches or pull requests

2 participants