question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

run coverage with docker

See original GitHub issue

Hello!

I just recently started using cookiecutter and I do not understand how to run coverage? I created the application, and run the tests like this: docker-compose -f dev.yml run django py.test

But how do I start the coverage ?

Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
webynetercommented, Jul 19, 2017

@narnikgamarnikus try

docker-compose -f local.yml run --rm django coverage run --source . -m py.test
docker-compose -f local.yml run --rm django coverage report
docker-compose -f local.yml run --rm django coverage html
1reaction
webynetercommented, Jul 19, 2017

@narnikgamarnikus, to integrate with codecov,

  1. you should first sign up;
  2. then, follow the instructions they provide;
  3. finally, find the badge at one of the codecov’s pages related to your account: As far as I remember, they do provide the one for inclusion into *.rst files.
Read more comments on GitHub >

github_iconTop Results From Across the Web

Run Test Coverage inside Docker container for Pyspark test ...
Since you are using docker, a good option is to create a volume inside a docker container and when the tests are finished,...
Read more >
Testing with Docker - Codecov
Pass coverage reports out of the container through a mounted directory, and then run Codecov. This requires you to know the report files...
Read more >
Recording Test Coverage for Java with Docker
Recording Test Coverage for Java with Docker. This how-to will show you how to set up test coverage recording for a dockerized Java...
Read more >
Get xUnit Code Coverage from Docker
The code coverage shows how much of your code is covered by at least one test. This post showed how easy it can...
Read more >
Capturing code coverage while running within a docker ...
I am able to run my uinttests within the docker container. When I run with the same configuration with coverage, the coverage results...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found