Skip to content

Commit

Permalink
add xcov report
Browse files Browse the repository at this point in the history
  • Loading branch information
vitor-rc1 committed Feb 14, 2024
1 parent 6541b0b commit bba7e97
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion RecipeApp/Dangerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,15 @@ declared_trivial = github.pr_title.include? "#trivial"
warn("PR is classed as Work in Progress") if github.pr_title.include? "[WIP]"

# Warn when there is a big PR
warn("Big PR") if git.lines_of_code < 500
warn("Big PR") if git.lines_of_code > 500

# Don't let testing shortcuts get into master by accident
fail("fdescribe left in tests") if `grep -r fdescribe specs/ `.length > 1
fail("fit left in tests") if `grep -r fit specs/ `.length > 1

xcov.report(
workspace: "RecipeApp.xcworkspace",
scheme: "RecipeApp",
output_directory: "fastlane/xcov_output",
minimum_coverage_percentage: 80.0
)

0 comments on commit bba7e97

Please sign in to comment.