mirror of
https://github.com/onyx-and-iris/vban-cmd-python.git
synced 2024-11-15 17:10:46 +00:00
Update pre-commit.ps1
This commit is contained in:
parent
89dec75b98
commit
35371c9090
@ -3,7 +3,7 @@ Function RunTests {
|
|||||||
$run_tests = "pytest -v --capture=tee-sys --junitxml=./tests/.coverage.xml"
|
$run_tests = "pytest -v --capture=tee-sys --junitxml=./tests/.coverage.xml"
|
||||||
$match_pattern = "^=|^\s*$|^Running|^Using|^plugins|^collecting|^tests"
|
$match_pattern = "^=|^\s*$|^Running|^Using|^plugins|^collecting|^tests"
|
||||||
|
|
||||||
Clear-Content $coverage
|
if ( Test-Path "./$coverage" ) { Clear-Content $coverage }
|
||||||
|
|
||||||
ForEach ($line in $(Invoke-Expression $run_tests)) {
|
ForEach ($line in $(Invoke-Expression $run_tests)) {
|
||||||
If ( $line -Match $match_pattern ) {
|
If ( $line -Match $match_pattern ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user