astral-sh / ruff

An extremely fast Python linter and code formatter, written in Rust.
https://docs.astral.sh/ruff
MIT License
32.03k stars 1.07k forks source link

"Cleanup" markdown test names #13768

Open MichaReiser opened 4 days ago

MichaReiser commented 4 days ago

I don't know if rstest allows to do that but the generated test names are hard to read and the enumerating of the tests also leads to instable identifiers across runs (changing test names can be very annoying when bisecting a test failures).

image

It would be nice if we could:

Ideally, we would use the markdown title but that's probably not possible.

MichaReiser commented 4 days ago

I think removing the resources_md should be possible by using the #[base_dir = "/path/to/your/files"] attribute. dir-test allows customizing the test names

Aditya-PS-05 commented 15 hours ago

@MichaReiser , I think, Instead of removing resource_md, we should remove resource_. Screenshot from 2024-10-20 14-57-49

Is this modification okay?

MichaReiser commented 15 hours ago

@Aditya-PS-05 ahh, the md isn't the file extension but comes from mdtest. Yes, that looks better