forked from cardosofelipe/fast-next-template
Adjust .coveragerc to support concurrency options and skip test environment checks
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
[run]
|
[run]
|
||||||
source = app
|
source = app
|
||||||
|
concurrency = thread,greenlet
|
||||||
omit =
|
omit =
|
||||||
# Migration files - these are generated code and shouldn't be tested
|
# Migration files - these are generated code and shouldn't be tested
|
||||||
app/alembic/versions/*
|
app/alembic/versions/*
|
||||||
@@ -61,6 +62,10 @@ exclude_lines =
|
|||||||
# Pass statements (often in abstract base classes or placeholders)
|
# Pass statements (often in abstract base classes or placeholders)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# Skip test environment checks (production-only code)
|
||||||
|
if os\.getenv\("IS_TEST".*\) == "True":
|
||||||
|
if os\.getenv\("IS_TEST".*\) != "True":
|
||||||
|
|
||||||
[html]
|
[html]
|
||||||
directory = htmlcov
|
directory = htmlcov
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user