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
Copy file name to clipboardExpand all lines: docs/side_quests/nf-test.md
+24-16Lines changed: 24 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -750,20 +750,6 @@ Test Process convertToUpper
750
750
751
751
Test [c59b6044] 'Should run without failures' PASSED (1.798s)
752
752
753
-
754
-
SUCCESS: Executed 1 tests in 1.811s
755
-
756
-
> nf-test test.
757
-
758
-
🚀 nf-test 0.9.2
759
-
https://www.nf-test.com
760
-
(c) 2021 - 2024 Lukas Forer and Sebastian Schoenherr
761
-
762
-
763
-
Test Process convertToUpper
764
-
765
-
Test [c59b6044] 'Should run without failures' PASSED (1.663s)
766
-
767
753
Test Workflow main.nf
768
754
769
755
Test [1d4aaf12] 'Should run without failures' PASSED (1.652s)
@@ -778,6 +764,28 @@ SUCCESS: Executed 3 tests in 5.007s
778
764
779
765
Check that out! We ran 3 tests, 1 for each process and 1 for the whole pipeline with a single command. Imagine how powerful this is on a large codebase!
780
766
781
-
### Takeaway
767
+
## 4.0. Summary
768
+
769
+
In this side quest, we've learned:
770
+
771
+
1. How to initialize nf-test in a Nextflow project
772
+
2. How to write and run pipeline-level tests
773
+
3. How to write and run process-level tests
774
+
4. How to use snapshots to verify process outputs
775
+
5. How to run all tests in a repository with a single command
776
+
777
+
Testing is a critical part of pipeline development that helps ensure:
778
+
- Your code works as expected
779
+
- Changes don't break existing functionality
780
+
- Other developers can contribute with confidence
781
+
- Problems can be identified and fixed quickly
782
+
783
+
### What's next?
784
+
785
+
Check out the [nf-test documentation](https://www.nf-test.com/) for more advanced testing features and best practices. You might want to:
786
+
- Add more comprehensive assertions to your tests
787
+
- Write tests for edge cases and error conditions
788
+
- Set up continuous integration to run tests automatically
789
+
- Learn about other types of tests like workflow and module tests
782
790
783
-
You know how to run tests for the entire repo with a single command.
791
+
Remember: Tests are living documentation of how your code should behave. The more tests you write, the more confident you can be in your pipeline's reliability.
0 commit comments