-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[red-knot] mdtest
doesn't spot a new Markdown test file has been added until you force a rebuild of the crate being tested
#13732
Comments
I suppose this is because ruff/crates/red_knot_python_semantic/tests/mdtest.rs Lines 5 to 14 in defdc4d
And it doesn't know to rebuild the tests when a Markdown file is added, because a Markdown file isn't a Rust source file. |
The
Which seems okay... though it's a bit of a pain if we have to add a |
(Cc. @carljm) |
Yeah. We discussed this in the notion design document. The only other alternative is to discover the tests in the test function itself but that has the downside that all markdown tests run sequentially (and one failing test prevents other markdown tests from running). We should add a |
+1, experienced the same problem while porting whole infer tests set on #13719. |
I just did the following:
cargo test -p red_knot_python_semantic
, was mystified at the lack of failuresred_knot_python_semantic
, it triggered a rebuild of the crate and the new Markdown test file was picked up bymdtest
, as expected.I think this has actually happened to me a few times over the last few days, but this is the first time I realised exactly what was going on...
The text was updated successfully, but these errors were encountered: