Closed
Description
Description:
In my project, I use TypeScript, which results in a large node_modules
directory. This significantly slows down the discovery of test suites and tests. To address this, I propose enhancing the SuiteStructureBuilder
class to allow ignoring additional files and folders during the discovery process. This enhancement should also consider the existing .gitignore
file to determine which files and folders to exclude.
Proposed Changes:
- Modify the
_is_included
method in theSuiteStructureBuilder
class to support additional ignore patterns specified by the user. - Implement functionality to read and parse a
.gitignore
file and integrate these patterns into the_is_included
method.
Benefits:
- Improved flexibility in managing which files and folders are included in the discovery process.
- Simplified configuration by leveraging existing
.gitignore
files. - Enhanced performance in projects with large directories like
node_modules
.