docs/testing/resmoke_modules.md
This configuration allows additional modules to be added to Resmoke, providing more context about their associated directories. Modules can specify directories for fixtures, hooks, suites, and JavaScript tests, which Resmoke incorporates during its testing process.
To add a new module to Resmoke, define the module name and specify its fixture_dirs, hook_dirs, suite_dirs, and jstest_dirs in the YAML configuration. Each field should be a list of directory paths.
my_new_module:
fixture_dirs:
- path/to/my_new_module/fixtures
hook_dirs:
- path/to/my_new_module/hooks
suite_dirs:
- path/to/my_new_module/suites
jstest_dirs:
- path/to/my_new_module/jstests
fixture_dirs: Directories containing fixtures associated with the module.hook_dirs: Directories containing hooks associated with the module.suite_dirs: Directories containing suites with test configurations.jstest_dirs: Directories containing JavaScript tests specific to the module. This ensures module-specific tests are excluded from other suite configurations when the module is disabled.