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 13, 2024
1 parent 727a930 commit 501ceee
Show file tree
Hide file tree
Showing 2 changed files with 19 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"
17 changes: 17 additions & 0 deletions dev/coverage.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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 501ceee

Please sign in to comment.