This package, `esdoc2-integrate-test-plugin`, functions as a specialized plugin for the ESDoc2 documentation generator. Its primary purpose is to seamlessly embed and link integration test documentation directly into the output generated by ESDoc2. Users configure the plugin within their `esdoc2` setup to specify the source directories containing test files, define recognized testing interfaces (such as `describe`, `it`, `context`, `suite`, and `test`), and apply include/exclude regex patterns to precisely control which test files are processed. The plugin is currently on version 2.0.0, with a recent feature release (v2.1.0) indicating ongoing maintenance and development. Its key differentiator lies in enabling comprehensive documentation that cross-references code with its corresponding integration tests, enhancing clarity for maintainers and consumers of the documented codebase. The release cadence appears feature-driven, providing updates as new capabilities are added or existing ones are refined.
npm install esdoc2-integrate-test-pluginNo compatibility data collected yet for this library.
This configuration snippet shows how to integrate `esdoc2-integrate-test-plugin` into your ESDoc2 documentation generation process by specifying test file locations, testing interfaces, and regex patterns for including/excluding files.
Ensure `esdoc2` is installed (`npm install esdoc2`) and your project has a working ESDoc2 configuration file. The plugin integrates test file content, not test execution.
Always provide a `source` path to your test files, e.g., `"option": { "source": "./test/" }`.Thoroughly test your `includes` and `excludes` regex patterns to ensure they match your desired file naming conventions. Examples: `"(spec|Spec|test|Test)\\.js$"` for common test file suffixes.
Review your testing framework's global functions and update the `interfaces` array if your tests use names not in the default list `["describe", "it", "context", "suite", "test"]`.
Ensure `esdoc2-integrate-test-plugin` is installed (`npm install esdoc2-integrate-test-plugin`) and correctly referenced by name in your `esdoc2` configuration's `plugins` array.
Add a `source` property with a valid path to your test files, e.g., `"option": { "source": "./test/" }`.Review the `includes` and `excludes` patterns in your `esdoc2` configuration to ensure they correctly match the filenames and paths of your integration tests. Use online regex testers to validate.