From e091ac9dac66eb9c812d7ae596cf42a5ffdef049 Mon Sep 17 00:00:00 2001 From: viktorbeck98 Date: Thu, 4 Jun 2026 11:41:02 +0200 Subject: [PATCH 1/2] change the outdated references of tests/ to detectmatelibrary_tests/ --- docs/create_components.md | 6 +++--- docs/installation.md | 2 +- src/detectmatelibrary_tools/workspace/utils.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/create_components.md b/docs/create_components.md index 2debd11a..d274ab80 100644 --- a/docs/create_components.md +++ b/docs/create_components.md @@ -35,7 +35,7 @@ workspaces/custom_parser/ # workspace root ├── custom_parser/ # Python package │ ├── __init__.py │ └── custom_parser.py # CoreParser-based template -├── tests/ +├── detectmatelibrary_test/ │ └── test_custom_parser.py # generated from template to test custom_parser ├── data.json # example data to run the code ├── LICENSE.md # copied from main project @@ -49,8 +49,8 @@ workspaces/custom_parser/ # workspace root To add the new component to the `DetectMateLibrary`, you need to add the component file to the specific folder and update the import paths. -* **Detector**: Add the detector file component in `src/detectmatelibrary/detectors` and the unit tests in `tests/test_detectors`. -* **Parsers**: Add the parser file component in `src/detectmatelibrary/parsers` and the unit tests in `tests/test_parsers`. +* **Detector**: Add the detector file component in `src/detectmatelibrary/detectors` and the unit tests in `detectmatelibrary_test/test_detectors`. +* **Parsers**: Add the parser file component in `src/detectmatelibrary/parsers` and the unit tests in `detectmatelibrary_test/test_parsers`. Once that is complete, **ensure that all unit tests and the pre-commit process are successful**. diff --git a/docs/installation.md b/docs/installation.md index 2f04fc82..c9832e45 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -84,7 +84,7 @@ uv run --dev pytest --cov=. --cov-report=term-missing **Tips**: -- Run a single test or directory to speed iteration: `uv run --dev pytest tests/some_test.py::test_name -q` +- Run a single test or directory to speed iteration: `uv run --dev pytest detectmatelibrary_tests/some_test.py::test_name -q` ## Troubleshooting diff --git a/src/detectmatelibrary_tools/workspace/utils.py b/src/detectmatelibrary_tools/workspace/utils.py index 3fd13ec1..8264761b 100644 --- a/src/detectmatelibrary_tools/workspace/utils.py +++ b/src/detectmatelibrary_tools/workspace/utils.py @@ -38,7 +38,7 @@ def create_readme(name: str, ws_type: str, target_impl: Path, target_dir: Path) ## Contents - `{normalize(name)}/{target_impl.name}`: starting point for your `{ws_type}` implementation. - - `tests/test_{target_impl.name}`: unit tests for your `{ws_type}`. + - `detectmatelibrary_tests/test_{target_impl.name}`: unit tests for your `{ws_type}`. - `LICENSE.md`: EUPL-1.2 license copied from the main project. - `.pre-commit-config.yaml`: recommended pre-commit hook configuration. - `.gitignore`: standard ignore rules. From 764ad697455c16a821aecd186ca466a6892012b2 Mon Sep 17 00:00:00 2001 From: viktorbeck98 Date: Thu, 4 Jun 2026 11:41:45 +0200 Subject: [PATCH 2/2] change the outdated references of tests/ to detectmatelibrary_tests/ --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c9ccb822..9b6e38c0 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,7 @@ workspaces/custom_parser/ # workspace root ├── custom_parser/ # Python package │ ├── __init__.py │ └── custom_parser.py # CoreParser-based template -├── tests/ +├── detectmatelibrary_tests/ │ └── test_custom_parser.py # generated from template to test custom_parser ├── data.json # example data to run the code ├── LICENSE.md # copied from main project