Skip to content

Commit eeb1f0a

Browse files
committed
add summary
1 parent b015e77 commit eeb1f0a

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

docs/side_quests/nf-test.md

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -750,20 +750,6 @@ Test Process convertToUpper
750750

751751
Test [c59b6044] 'Should run without failures' PASSED (1.798s)
752752

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-
767753
Test Workflow main.nf
768754

769755
Test [1d4aaf12] 'Should run without failures' PASSED (1.652s)
@@ -778,6 +764,28 @@ SUCCESS: Executed 3 tests in 5.007s
778764

779765
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!
780766

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
782790

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

Comments
 (0)