diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 537b08a..d252d4d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,8 +28,8 @@ jobs: python-version: "3.13" - name: Install dependencies run: pip install hatch - - name: Run unit and integrations tests - run: hatch run dev:pytest --cov=reqstool-python-decorators --cov-report=xml --cov-report=html + - name: Run tests + run: hatch run dev:pytest --junitxml=build/junit.xml --cov=reqstool_python_decorators --cov-report=xml:build/coverage.xml - name: Build project run: hatch build # Upload artifacts for later use diff --git a/pyproject.toml b/pyproject.toml index 0c1ab4a..497314d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -3,9 +3,18 @@ requires = ["hatchling", "hatch-vcs", "build", "twine"] build-backend = "hatchling.build" [tool.pytest.ini_options] -addopts = ["-s", "--import-mode=importlib"] +addopts = [ + "-rsxX", + "-s", + "--import-mode=importlib", + "--log-cli-level=DEBUG", +] pythonpath = [".", "src", "tests"] -testpaths = ["tests/unit"] +testpaths = ["tests"] +markers = [ + "integration: tests that require external resources", + "e2e: end-to-end tests that run the full pipeline locally", +] [project] name = "reqstool-python-decorators" diff --git a/tests/e2e/__init__.py b/tests/e2e/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/e2e/reqstool_decorators/__init__.py b/tests/e2e/reqstool_decorators/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/tests/integration/reqstool_decorators/__init__.py b/tests/integration/reqstool_decorators/__init__.py new file mode 100644 index 0000000..e69de29