-
Notifications
You must be signed in to change notification settings - Fork 254
nf-test side quest #516
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
nf-test side quest #516
Conversation
✅ Deploy Preview for nextflow-training ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
|
No cherry-pick 😢 I will never get credit. |
True, I can try to fix that. I sort of started half-heartedly and got lazy handling conflicts |
|
It's not a huge deal! |
11e944d to
499dfc1
Compare
New structure complicated things, but added you as author on the first commit here. |
|
General comment: try to start every sentence on a new line as it makes it easier to review specific bits of text, and will make reviewing further changes easier as well. |
vdauwera
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works well as an introduction to nf-test, and it really helps to have the genomics complexity out of the way.
Couple of recommendations in my review, including adding test cases for something other than identity (specific content would be great) and maybe also covering the 'setup method' case?
adamrtalbot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing work, @adamrtalbot and @pinin4fjords ! I'm happy with this PR getting merged, but I would like to share the feeling I still remember having when I started playing with nf-test.
The person who does this material for the first time will finish with the feeling of "Ok, I know what are Nextflow tests now, but I still can't do one 😓".
I think we should spend more time helping people provide real inputs to tests, or using some operators to do something with channel elements. It doesn't have to be complex, just more examples so that the person has more material to work with when they want to write their tests. This could be added later, but I think it's important to add at some point.
PS: Some comments on the setup block too, as @vdauwera mentioned.
Co-authored-by: Marcel Ribeiro-Dantas <mribeirodantas@seqera.io>
bfb75f0
I added line numbers and line highlights to make it easier to realise which lines changed from "Before" to "After". When testing the training, sometimes it wasn't so straightforward to see what changed and line numbers are very useful when teaching.
|
I added line numbers / line highlights to the code block comparisons. More details in the commit message. Feel free to revert it if you think it's not helpful. |
I like it! |
I'm not 100% sold on including setup at this stage. It's not really needed until you get properly into the weeds with nf-test, I think it might muddy the waters to introduce too early. |
Yeah on further thought I'd be ok leaving it for an 'intermediate' level add-on to this side quest. |
I agree, but we definitely need the next one! My feeling is that this first piece only gives an idea of nf-test, and is not really applicable to what people may need, even in simple pipelines. And that's fine, imho, as long as we have next step 😆 |
That's a good thing. This might be the first introduction to testing ever and therefore it should be kept to the what and why without diving into every case. The long tail of testing is enormous and there are many, many different situations, if we wrote guidance for all of them we would go mad. Instead, introduce the key concepts and leave the special cases for side quests. If I google "how do I run a process before an nf-test", the nf-test setup page is the number 1 hit. So my aim for this module is teach people enough to know what to google or where to move next. |
This is a port of the first part of @adamrtalbot 's work in #499 for the new structure. Also corrected gitpod links to codespaces, and adjusted wording so it's more standalone.