Verified Commit dbbafd1f authored by Jakob Moser's avatar Jakob Moser
Browse files

Prepare unit tests

parent a4f88cf4
Loading
Loading
Loading
Loading
Loading

.coveragerc

0 → 100644
+6 −0
Original line number Diff line number Diff line
[run]
command_line=-m pytest --junit-xml=testresults.xml
source=.

[report]
precision=2
 No newline at end of file
+2 −0
Original line number Diff line number Diff line
.idea
__pycache__
.coverage
testresults.xml
+17 −0
Original line number Diff line number Diff line
@@ -14,3 +14,20 @@ build-docker:
  only:
    - master
# End of adapted snippet

test-backend:
  image: ghcr.io/astral-sh/uv:python3.12-bookworm
  stage: test
  before_script:
    - uv sync --locked
  script:
    - uv run coverage run
    - uv run coverage report
    - uv run coverage xml
  coverage: '/TOTAL .* (\d{1,3}.\d{2})%/'
  artifacts:
    reports:
      coverage_report:
        coverage_format: cobertura
        path: coverage.xml
      junit: testresults.xml
+6 −0
Original line number Diff line number Diff line
@@ -23,3 +23,9 @@ Issues = "https://gitlab.cl.uni-heidelberg.de/fachschaft/coliverter/-/issues"
[build-system]
requires = ["hatchling >= 1.26"]
build-backend = "hatchling.build"

[dependency-groups]
dev = [
    "coverage>=7.12.0",
    "pytest>=9.0.2",
]
+131 −2

File changed.

Preview size limit exceeded, changes collapsed.