-
Notifications
You must be signed in to change notification settings - Fork 41
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
Turn stupicat
tests into proper Rust tests
#13
Comments
I like the proposition! The reason for doing it that way was my convenience only, but doing it that way might not be the most maintainable thing to do for the project. A benefit of doing it that way was the visual diffing, and I wonder if 'insta' could be useful here for snapshot testing. If there is no visual way of testing, this might be a good opportunity to split up the big input file into smaller chunks to make clearer what is important there. |
Maybe with things like |
👋 I'd be keen to add some |
By all means, please give it a shot. I wonder what the strategy would be. Is it pulling parts of the stupicat example out into insta so that the individual diffs are more maintainable? Note that by now, we also are running the entire common mark spec without about 2/3 succeeding. All tests are generated, and maybe insta even has a place there to make the individual tests more easily viewable. In any case, I'd prefer it if these insta tests aren't overlapping with what's there, ideally with bolstering the spec based tests while reducing stupicat ones if they aren't adding anything over the spec tests. |
What do you think about turning the tests that are currently done using the
stupicat
example into proper Rust tests?We can have a
tests/roundtrip.rs
or similar that consumes the fixtures, runs against the API and checks the output.That way a simple
cargo test
really runs all the required tests.The text was updated successfully, but these errors were encountered: