Vauxoo / travis2docker

This is a Library to transform travis to docker file
BSD 2-Clause "Simplified" License
13 stars 15 forks source link

Add the option of fetching the coverage from the image created with t2d --deployv #178

Closed hbto closed 1 year ago

hbto commented 1 year ago

in the previous version of t2d, that is t2d with --deployv switch,

We were able to fetch a coverage report with the following command:

coverage report -m

Can we have it back in order to assess how are we increasing/decreasing the coverage of our development without having wait for the CD. This will have a good side effect reduce the number of job in the CD only to know the coverage.

Regards.

moylop260 commented 1 year ago

For record, We need to migrate the coverage command:

And generates coveragerc content:

And get the same coveragerc file:

It could be migrated to tools_test file in order to be able to re-use it in t2d:

antonag32 commented 1 year ago

The idea is to have everything autoconfigured. So that as stated, when running the command coverage run or coverage report -m, you can automatically regenerate coverage data or see the coverage report.

The commands must simply work. So for example, the result should be the same regardless of the current working directory. It should also use the customization each repo has in their variables.sh.

To do this, environment variables will used (for the most part), for example COVERAGE_HOME or COVERAGE_RCFILE to specify the configuration file to be used. Some of this variables can be directly set from the Dockerfile, some others (for examples modules to run) are more complicated and will probably need to be computed and set during the installation process in build.sh.

moylop260 commented 1 year ago

For record,

It is working like a charm

Thank you @antonag32