Skip to content

FalconSocial/coverage-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

coverage-test

Test Coverage.py. Requires docker-compose.

Meant to test coverage paths, and how you get it to re-write the sources path in the coverage files generated.

[coverage:paths]
source =
    /app/app
    /c/Users/username/Desktop/Workspace/coverage-test/app

Where I want the /app/app to be replaced with /c/Users/username/Desktop/Workspace/coverage-test/app.

So to go from this:

!coverage.py: This is a private format, don't read it directly!{"lines":{"/app/app/__init__.py":[1],"/app/app/helpers.py":[1,4,9,11,6]}}

To this:

!coverage.py: This is a private format, don't read it directly!{"lines":{"/c/Users/username/Desktop/Workspace/coverage-test/app/__init__.py":[1],"/c/Users/username/Desktop/Workspace/coverage-test/app/helpers.py":[1,4,9,11,6]}}

Use

Call

docker-compose up

And inspect generated coverage files. Change settings in tox.ini.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages