Skip to content

Commit

Permalink
add dev folder for calculating coverage in local environment
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytecode committed Mar 18, 2024
1 parent e5735ac commit e18b034
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dev/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[deps]
Coverage = "a2441757-f6aa-5fb2-8edb-039e3f45d037"
18 changes: 18 additions & 0 deletions dev/coverage.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import Pkg

Pkg.activate("../")
Pkg.resolve()

import Coverage

Pkg.test(coverage = true)

tested, total = Coverage.process_folder("../") |> Coverage.get_summary

ratio = tested / total

Coverage.clean_folder("../")


@info "Coverage: $ratio"

0 comments on commit e18b034

Please sign in to comment.