Skip to content

Commit

Permalink
test: add tests for new flag snippet-func
Browse files Browse the repository at this point in the history
  • Loading branch information
crosscode-nl committed Jan 5, 2024
1 parent f4065b5 commit e81113e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/flags/flags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ func Test_BindFlagsShouldRespectFlagDefaults(t *testing.T) {
assert.Equal(t, "pretty", opts.Format)
assert.Equal(t, "", opts.Tags)
assert.Equal(t, 1, opts.Concurrency)
assert.Equal(t, "step_func", opts.SnippetFunc)
assert.False(t, opts.ShowStepDefinitions)
assert.False(t, opts.StopOnFailure)
assert.False(t, opts.Strict)
Expand All @@ -44,6 +45,7 @@ func Test_BindFlagsShouldRespectFlagOverrides(t *testing.T) {

flagSet.Parse([]string{
"--optOverrides.format=junit",
"--optOverrides.snippet-func=gwt_func",
"--optOverrides.tags=test2",
"--optOverrides.concurrency=3",
"--optOverrides.definitions=false",
Expand All @@ -56,6 +58,7 @@ func Test_BindFlagsShouldRespectFlagOverrides(t *testing.T) {
assert.Equal(t, "junit", opts.Format)
assert.Equal(t, "test2", opts.Tags)
assert.Equal(t, 3, opts.Concurrency)
assert.Equal(t, "gwt_func", opts.SnippetFunc)
assert.False(t, opts.ShowStepDefinitions)
assert.False(t, opts.StopOnFailure)
assert.False(t, opts.Strict)
Expand Down

0 comments on commit e81113e

Please sign in to comment.