Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .testcoverage.example.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ diff:
# Allowed threshold for the test coverage difference (in percentage)
# between the feature branch and the base branch.
#
# By default, this is disabled (set to nil). Valid values range from
# By default, this is disabled (set to null). Valid values range from
# -100.0 to +100.0.
#
# Example:
# If set to 0.5, an error will be reported if the feature branch has
# less than 0.5% more coverage than the base.
#
# If set to -0.5, the check allows up to 0.5% less coverage than the base.
threshold: nil
threshold: null
9 changes: 9 additions & 0 deletions pkg/testcoverage/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,15 @@ func Test_ConfigFromFile(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, savedCfg, cfg)
})

t.Run("example file", func(t *testing.T) {
t.Parallel()

cfg := Config{}
filename := "../../.testcoverage.example.yml"
err := ConfigFromFile(&cfg, filename)
assert.NoError(t, err)
})
}

func TestConfigYamlParse(t *testing.T) {
Expand Down
Loading