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.
Structure wrapping the `PackageCoverage` struct to add a custom `show` method for fixing PrettyTables issues until https://github.com/JuliaCI/LocalCoverage.jl/pull/68 is merged.
8
+
"""
9
+
struct WrappedPackageCoverage
10
+
summary::PackageCoverage
11
+
end
12
+
13
+
function Base.show(io::IO, wrapped::WrappedPackageCoverage)
# PrettyTables 3.0 changed Highlighter to TextHighlighter, which up to currently published version (v3.10) does not provide the kwargs constructor (despite having it documented). We create here a patch to handle both cases
0 commit comments