Skip to content

Commit

Permalink
Rename alias to run coverage discover to coverage-discover from cover…
Browse files Browse the repository at this point in the history
…age.

-------------------
There are multiple options that can be executed using coverage which can be used as "pdm run coverage <options>". But by setting coverage as alias in pdm script these options were no longer excecutable since it considers the coverage as alias for command "coverage run -m unittest discover" instead of module.
  • Loading branch information
Aadesh-Baral committed Jun 5, 2023
1 parent 7152f50 commit ed21414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ downgrade = "flask db downgrade"
test = "python -m unittest discover"
lint = "black manage.py backend tests migrations"
flake8 = "flake8 manage.py backend tests migrations"
coverage = "coverage run -m unittest discover"
coverage-discover = "coverage run -m unittest discover"

[build-system]
requires = ["pdm-pep517>=1.0.0"]
Expand Down

0 comments on commit ed21414

Please sign in to comment.