Skip to content

Conversation

@DanielVoogsgerd
Copy link
Collaborator

This PR introduces Cargo insta for snapshot testing.

I started by moving the branescript and bakery tests from the unit test section to a integration test section and then added snapshot testing on top of it.

Note that this is purely regression testing, for all I know all parsing is done incorrectly now, it it just self-consistent with previous results.

Not of particular interest for this PR, but we also need negative testing for branescript to make sure a nom update for example does not mess with error reporting

Also moved these integration tests to the correct location for
integration tests
@DanielVoogsgerd DanielVoogsgerd added E-Easy Effort: Easy C-Dependencies Category: Changes that *only* affect dependencies A-CI Area: Continuous integration P-Medium Priority: Medium labels Mar 24, 2025
@DanielVoogsgerd DanielVoogsgerd requested a review from Lut99 March 24, 2025 20:16
@DanielVoogsgerd DanielVoogsgerd mentioned this pull request Mar 20, 2025
1 task
@DanielVoogsgerd DanielVoogsgerd added the A-Testing Area: Testing label Mar 24, 2025
@codecov
Copy link

codecov bot commented Mar 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

Copy link

@Lut99 Lut99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! I don't have much experience with either snapshot testing or this framework, but I like the idea!

Note that the brane_shr::utilities repo is, actually, mostly implementing test stuff. Just a consideration for if you want to reorganize based on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CI Area: Continuous integration A-Testing Area: Testing C-Dependencies Category: Changes that *only* affect dependencies E-Easy Effort: Easy P-Medium Priority: Medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants