-
Notifications
You must be signed in to change notification settings - Fork 17
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
Suggestions from nf-core
#29
Comments
Hi,
Thanks for the suggestion and the thoughts. I understand that this would be quite useful for nf-core, but @seppinho and I are not sure if this also makes sense in the context of nf-test. nf-test is highly expressive and benefits by using the power assertions provided from Groovy and Nextflow specific extensions. However, we plan to integrate some kind of snapshot testing for output channels (similar to https://jestjs.io/docs/snapshot-testing). I think this could also be very helpful for you.
Tags are a very good idea and I see a lot of useful use cases! 👌 We will definitifly implement them in one of the next releases! Best, lukas. |
I like this idea! Could it also be possible to add snapshot testing to the files inside of the output directory? We mainly test those files instead of output channels. Thanks for the feedback!
Awesome! Thanks for all the good work! Cheers, |
Hi @nvnieuwk! We just released nf-test 0.7.0. This release contains now snapshot testing. This could be helpful for nf-core: Happy to hear your feedback! Best, lukas. |
Awesome stuff! I'm really excited to get this into nf-core/modules! Do you have anything you can share about the road map for tags? I know we can use pytest-workflow to run nf-test just like we do nextflow right now, but I'd love to cut out the extra dependancy and migrate to nf-test in one move. So I guess I'm just asking is it a few weeks off, before 2023, before or after March 2023 (our next hackathon which would be a good time to migrate). |
Thanks @lukfor! I'll have a look when I got some free time and will surely let you know if we encounter any problems. Thanks for the nice addition 🥳 |
Hi, I've been trying out the new
This test checks for:
Is it possible to implement a bit of error handling if invalid snapshots creation is attempted? I'll be happy to put this in a different issue if you would prefer it. Cheers, |
You created the However, I agree with you that we need a better error reporting for that case. |
Thanks. We plan to release this feature in the next version in about 2-3 weeks. |
I'm not sure if we should keep a thread of all the nf-core requests here rather than seaprate issues, but just in case x-ref: #43 |
Maybe a tag for nf-core? I think new issues should be made, rather than just trying to keep track of what we want in one long thread. |
Thanks! 🥳 |
Thanks for your suggestion. We created a |
@lukfor Can we change the color of the label to |
Tags moved to #49 |
Hi again,
After a discussion in the
nf-core
community we came up with a couple more suggestions that could make incorporation ofnf-test
intonf-core/modules
a bit easier to implement..yaml
file with the assertions (a bit similar to how it is done inpytest
=> e.g. this file).tag
system (similar topytest --tag
). This would make it easier to run the needed tests on Github Actions instead of having to supply the whole file path.Cheers,
Nicolas
The text was updated successfully, but these errors were encountered: