Skip to content

Commit

Permalink
chore: add pytest code coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
jamie-rasmussen committed Oct 11, 2024
1 parent 20864d0 commit 752af46
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ gha-creds-*.json
.env
.ruff_cache
.pytest_cache
.coverage
.nox
*.log
*/file::memory:?cache=shared
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def tests(session, shard):
if shard == "llamaindex":
session.posargs.insert(0, "-n4")

session.run("pytest", *session.posargs, *test_dirs, env=env)
session.run("pytest", "--cov=weave", "--cov-report=html", "--cov-branch", *session.posargs, *test_dirs, env=env)


# Configure pytest
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ test = [
"nox",
"pytest>=8.2.0",
"pytest-asyncio>=0.23.6",
"pytest-cov>=5.0.0",
"pytest-xdist>=3.1.0",
"pytest-rerunfailures>=12.0",
"clickhouse_connect==0.7.0",
Expand Down

0 comments on commit 752af46

Please sign in to comment.