src, add unit command
This commit is contained in:
parent
6ec57087e7
commit
92b0286af8
2 changed files with 7 additions and 0 deletions
|
|
@ -35,3 +35,8 @@ ignore = [
|
|||
"D413", # Missing blank line after last section
|
||||
"D415", # Should end with a period
|
||||
]
|
||||
|
||||
[tool.coverage.run]
|
||||
source = [
|
||||
"src/ytdl_sub"
|
||||
]
|
||||
|
|
|
|||
|
|
@ -2,6 +2,8 @@
|
|||
|
||||
if [[ $1 = "html" ]]; then
|
||||
coverage run -m pytest && coverage html
|
||||
elif [[ $1 = "unit" ]]; then
|
||||
coverage run -m pytest tests/unit && coverage report
|
||||
else
|
||||
coverage run -m pytest && coverage report
|
||||
fi
|
||||
|
|
|
|||
Loading…
Reference in a new issue