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

Add the expect_snapshot_RLum() test helper and start using it #244

Merged
merged 1 commit into from
Sep 14, 2024

Conversation

mcol
Copy link
Contributor

@mcol mcol commented Sep 13, 2024

This adds some snapshot tests for analyse_SAR.TL(), as I'm working on some changes to that function, and luckily there are just a few tests.

I've written the expect_snapshot_RLum() helper as we have to ignore the .uid and .pid fields, which would never match. The expected output is saved in the tests/testthat/_snaps/analyse_SAR.TL.md and contains a JSON representation of the output RLum.Results object.

We need to see how CI reacts to that, there may be tolerances that need to be set to satisfy different machine configurations. 🤞

This is the start of #243.

@RLumSK RLumSK merged commit d920de9 into master Sep 14, 2024
9 checks passed
@mcol mcol deleted the snapshots_01 branch September 14, 2024 07:13
@mcol mcol mentioned this pull request Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants