You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -17,6 +16,9 @@ This package simply extends the functionality of [LocalCoverage.jl](https://gith
17
16
- Automatically create an xml cobertura coverage and an html report using `pycobertura`.
18
17
- The `pycobertura` library is automatically installed and used thanks to `CondaPkg.jl` and `PythonCall.jl`, not requiring the user to manually install python or `lcov` which is only available on non-windows systems.
19
18
19
+
This package was mainly created to provide easier access to code coverage within a private self-hosted gitlab instance, where codecov can not be used as is, but an HTML coverage report can be directly integrated within the gitlab web interface.
20
+
21
+
It is also convenient for getting an HTML coverage report locally without always relying on codecov from GH actions.
20
22
21
23
You can see an example of the generated HTML coverage report [here](https://disberd.github.io/ExtendedLocalCoverage.jl/coverage_example/), which was generated by calling `generate_package_coverage(; force_paths_relative = true)` on the [PlutoPlotly.jl](https://github.com/JuliaPluto/PlutoPlotly.jl) package.
For the basic usage which automatically extracts source files (including extensions) and generates the coverage report both in xml and html format, you can simply do the following (within the env of the package you are developing and making sure you have ExtendedLocalCoverage.jl in the `LOAD_PATH`):
36
38
```julia
37
39
using ExtendedLocalCoverage
38
-
generate_package_coverage()
40
+
cov_data =generate_package_coverage();
39
41
```
40
42
41
43
See the [developer documentation](https://disberd.github.io/ExtendedLocalCoverage.jl/dev) for more details.
0 commit comments