Skip to content

Commit d63565c

Browse files
committed
refactor: move junit test results to tests/results
1 parent c9a1f53 commit d63565c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

noxfile.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ def test(session: Session) -> None:
123123
session.run("pytest", "tests")
124124

125125

126-
127126
@nox.session(venv_backend="none")
128127
def release_template(session: Session):
129128
"""Run the release process for the TEMPLATE using Commitizen.

{{cookiecutter.project_name}}/.github/workflows/test-python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
uses: actions/upload-artifact@v4
5555
with:
5656
name: {{"test-results-${{ matrix.os }}-py${{ matrix.python-version }}"}}
57-
path: test-results/*.xml
57+
path: tests/results/*.xml
5858
retention-days: 5
5959

6060
- name: Upload coverage report

{{cookiecutter.project_name}}/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ build/ # Build artifacts from setuptools/build backends
3737
htmlcov/ # Coverage HTML reports (default output dir)
3838
.coverage* # Coverage data files (default name pattern)
3939
coverage.*
40-
test-results/ # Directory for JUnit/Coverage XML reports (as configured in noxfile)
40+
tests/results/ # Directory for JUnit/Coverage XML reports (as configured in noxfile)
4141

4242
# Editor/IDE specific files
4343
.vscode/ # VS Code settings (if not shared via devcontainer)

{{cookiecutter.project_name}}/noxfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
DEFAULT_PYTHON_VERSION: str = PYTHON_VERSIONS[-1]
2424

2525
REPO_ROOT: Path = Path(__file__).parent.resolve()
26+
TESTS_FOLDER: Path = REPO_ROOT / "tests"
2627
SCRIPTS_FOLDER: Path = REPO_ROOT / "scripts"
2728
CRATES_FOLDER: Path = REPO_ROOT / "rust"
2829

@@ -144,7 +145,7 @@ def tests_python(session: Session) -> None:
144145
session.install("-e", ".", "--group", "dev")
145146

146147
session.log(f"Running test suite with py{session.python}.")
147-
test_results_dir = Path("test-results")
148+
test_results_dir = TESTS_FOLDER / "results"
148149
test_results_dir.mkdir(parents=True, exist_ok=True)
149150
junitxml_file = test_results_dir / f"test-results-py{session.python.replace('.', '')}.xml"
150151

0 commit comments

Comments
 (0)