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

Try putting expected mutations inline in testdata as comments? #486

Open
sourcefrog opened this issue Jan 21, 2025 · 0 comments
Open

Try putting expected mutations inline in testdata as comments? #486

sourcefrog opened this issue Jan 21, 2025 · 0 comments
Labels
maybe Uncertain if this is a good idea, discuss before implementing testing About cargo-mutants own test suite

Comments

@sourcefrog
Copy link
Owner

Perhaps it would be congenial to have testdata like this:

fn a() -> usize {
    // EXPECT: replace + with -
    // EXPECT: replace + with *
    3 + 4

(Instead of the current large and unwieldy snapshot files like https://github.com/sourcefrog/cargo-mutants/blob/main/tests/snapshots/list__list_mutants_in_all_trees_as_text.snap)

@sourcefrog sourcefrog added maybe Uncertain if this is a good idea, discuss before implementing testing About cargo-mutants own test suite labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maybe Uncertain if this is a good idea, discuss before implementing testing About cargo-mutants own test suite
Projects
None yet
Development

No branches or pull requests

1 participant