module_tests
ModuleLint.module_tests(module: NFCoreComponent, allow_missing: bool = False)
Lint the tests of a module 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 must contain aversionskey.test_main_tags: Themain.nf.testfile must declare the required tags:modules,modules_<org>, the full component name, and (fortool/subtoolmodules) the tool name alone. Tags for any chained components included viaincludestatements must also be present.test_old_test_dir: The legacy pytest directorytests/modules/<component_name>/must not exist.