Skip to content

Commit

Permalink
chore: adds tap support
Browse files Browse the repository at this point in the history
test anything protocol is a highly parseable output format
https://testanything.org/philosophy.html

this adds the plugin to pytest to produce tap output
  • Loading branch information
devraj committed Jan 5, 2024
1 parent 53bd8b8 commit 27242e9
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ tasks:
runs all the tests inside the virtualenv, optionally
provide the name of the test as an argument to run a single test
cmds:
- poetry run coverage run -m pytest -s tests/{{.CLI_ARGS}}
- poetry run coverage run -m pytest -s --tap tests/{{.CLI_ARGS}}
test:list:
desc: lists the available tests
summary:
Expand Down
31 changes: 30 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ typer = {extras = ["all"], version = "^0.9.0"}
rich = "^13.7.0"
pytest-asyncio = "^0.23.2"
asyncer = "^0.0.2"
pytest-tap = "^3.4"

[tool.poetry.group.dev.dependencies]
pytest = "^7.2.2"
Expand Down

0 comments on commit 27242e9

Please sign in to comment.