Before I waste half an hour testing it, maybe some...
# nf-test
p
Before I waste half an hour testing it, maybe someone can tell me. If I run this:
Copy code
nf-test test tests/main.nf.test --update-snapshot
And the snapshots don't match and are updated, does it still report as a failed test? eg. would GitHub actions still report a failure, even though the files are updated on disk?
n
Nope unless the module itself failed or there was some error somewhere in the code
Output changes will not result in a failure with --update-snapshot
p
daymn
n
You should run them twice anyways to check stability 😛. So run once with update-snapshot and once without?
p
Seems a waste though!
n
Yes but I can't really think of a better way 😅
p
I want it the other way around anyway, I want it to fail
So if the snapshots change I want failure, but new files.
Then run again without and it should pass
n
Maybe you could check if the files have changed after running?
p
They don't
They go to a temp folder to be compared I think
So it fails, then I have to run a second time with update snapshots to get the files
n
Okay that's annoying 🫤. I can try and help next week if you haven't figured it out by then
p
I gave up.. (for now)
And made an issue on nf-test: https://github.com/askimed/nf-test/issues/322
👍 1
s
nf-test development is basically non existent at the moment
😢 1