Skip to content

Commit

Permalink
fix: rename _examples to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
GCrispino committed Jan 5, 2024
1 parent b5c8f21 commit f1538c9
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions custom_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ import (
"regexp"
"testing"

"github.com/regen-network/gocuke"
"github.com/stretchr/testify/require"

"github.com/regen-network/gocuke"
)

func TestCustomSteps(t *testing.T) {
gocuke.NewRunner(t, &customStepsSuite{}).
Path("_examples/simple/simple.feature").
Path("examples/simple/simple.feature").
Step(`I have (\d+) cukes`, (*customStepsSuite).A).
Step(regexp.MustCompile(`I eat (\d+)`), (*customStepsSuite).B).
Step(`I have (\d+) left`, (*customStepsSuite).C).
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions simple_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

func TestSimple(t *testing.T) {
gocuke.NewRunner(t, &simpleSuite{}).Path("_examples/simple/simple.feature").Run()
gocuke.NewRunner(t, &simpleSuite{}).Path("examples/simple/simple.feature").Run()
}

type simpleSuite struct {
Expand All @@ -31,7 +31,7 @@ func (s *simpleSuite) IHaveLeft(a int64) {

// test if a struct that doesn't use a pointer and a global var
func TestSimpleNonPointer(t *testing.T) {
gocuke.NewRunner(t, simpleSuiteNP{}).Path("_examples/simple/simple.feature").Run()
gocuke.NewRunner(t, simpleSuiteNP{}).Path("examples/simple/simple.feature").Run()
}

var globalCukes int64
Expand Down

0 comments on commit f1538c9

Please sign in to comment.