subworkflow_tests
SubworkflowLint.subworkflow_tests(subworkflow: NFCoreComponent, allow_missing: bool = False)
Lint the tests of a subworkflow in nf-core/modules
Checks the tests/ directory and main.nf.test file for correctness,
validates snapshot content, and verifies that nf-test tags follow guidelines.
The following checks are performed:
test_dir_exists: The nf-test directorytests/must exist.test_main_nf_exists: The filetests/main.nf.testmust exist.test_snapshot_exists: Ifsnapshot()is called inmain.nf.test, the snapshot filetests/main.nf.test.snapmust exist and be valid JSON.test_snap_md5sum: The snapshot must not contain md5sums for empty files (d41d8cd98f00b204e9800998ecf8427e) or empty compressed files (7029066c27ac6f5ef18d660d5741979a), unless the test name containsstub.test_snap_versions: The snapshot should contain aversionskey. A warning (not a failure) is issued if it is absent, since subworkflows that use topic channels may not emit versions directly.test_main_tags: Themain.nf.testfile must declare the required tags:subworkflows,subworkflows/<component_name>,subworkflows_<org>, all components included in the subworkflow’smain.nf, and any chained components referenced viaincludestatements in the test file.test_old_test_dir: The legacy pytest directorytests/subworkflows/<component_name>/must not exist.