You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ nf-test test --tag test --profile docker,test --update-snapshot
🚀 nf-test 0.8.4
https://code.askimed.com/nf-test
(c) 2021 - 2024 Lukas Forer and Sebastian Schoenherr
Load .nf-test/plugins/nft-bam/0.3.0/nft-bam-0.3.0.jar
Load .nf-test/plugins/nft-utils/0.0.3/nft-utils-0.0.3.jar
Found 1 files in test directory.
Warning: every snapshot that fails during this test run is re-record.
Test pipeline: NFCORE_EAGER
Test [cc0bd237] 'test_profile' PASSED (138.503s)
Snapshots:
1 created [mapping]
Snapshot Summary:
1 created
SUCCESS: Executed 1 tests in 138.509s
But the produced snapshot contains no mapping section.
I found that changing the assertion name to .match("mapping_output") fixes the issue and the mapping_output section of the snapshot appears, as expected.
I am unsure why this happens, and have found a workaround, but I am curious why this happens to begin with. Is mapping implicitly ignored in snapshots for some reason?
The text was updated successfully, but these errors were encountered:
TCLamnidis
changed the title
naming a snapshop mapping omits it from the snapshot?
naming a snapshot section mapping omits it from the snapshot?
Dec 6, 2024
Oh thanks for the explanation! 😄
I'd personally be happy with even just a warning when mapping exists in the snapshot.
Renaming the section is easy to do, if one knows that name is reserved.
I am using
nft-utils
to collect a set of files from the output of my pipeline, and then test them for consistency in content or name usingnf-test
.Here's part of the test code.
I run my test and get the following output:
But the produced snapshot contains no
mapping
section.I found that changing the assertion name to
.match("mapping_output")
fixes the issue and themapping_output
section of the snapshot appears, as expected.I am unsure why this happens, and have found a workaround, but I am curious why this happens to begin with. Is
mapping
implicitly ignored in snapshots for some reason?The text was updated successfully, but these errors were encountered: