Skip to content

[ENHANCEMENT] Enhance Suite Discovery to Ignore More Files and Folders, Including .gitignore #286

Closed
@d-biehl

Description

@d-biehl

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:

  1. Modify the _is_included method in the SuiteStructureBuilder class to support additional ignore patterns specified by the user.
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions