Skip to content

Commit

Permalink
add dev folder for calculating coverage ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
jbytecode committed Apr 2, 2024
1 parent 457e4fd commit 1ec1c69
Show file tree
Hide file tree
Showing 2 changed files with 23 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"
21 changes: 21 additions & 0 deletions dev/coverage.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Usage:
# > julia coverage.jl
# in terminal

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 1ec1c69

Please sign in to comment.