feat(*): create keyword functions
* chore(*): update messages and gherkin, relocate Keyword
* chore(*): update messages and gherkin, relocate Keyword
* chore(*): update messages and gherkin, relocate Keyword
* feat(*): mandate keyword type when unambiguous keyword function is used
* test(*): keyword type in feature files
* docs(*): update step-by-step walkthrough to mention the option of using keyword functions
* docs(*): update CHANGELOG.md
* test(*): keyword substeps
* chore(*): go mod
* Pretty Print when using rules (#440)
* Pretty Print when using rules (#440)
* fix a few formatting mistakes (#440)
* added test with rule and scenario outline (#440)
* Update README to reflect current best practices in creating and running tests
* Update CHANGELOG and README
Co-authored-by: Matt Wynne <matt@cucumber.io>
* Update go version in go.mod (go1.17). Update dependencies.
* Update go version in go.mod (go1.17). Run go mod tidy in _examples.
* Update go version in go.mod (go1.16).
* Update go version in go.mod (go1.16).
* Add example about incorrect project structure
This is to help reproduce #383
* Added some debugging statements
* Update go.sum for example project
* Made a cmd_run_test.go file in order to test and run the builderAndRunGodog function in order to see it fail
* added new assertion test
* Matt and I added debugging
Co-authored-by: Matt Wynne <matt@mattwynne.net>
* Matt and I tried to logging through the cobra command
by using cmd.OutOrStdout( )
* Improved some debugging
* Add a failing test for Builder that reproduces #383
* added new test for IncorrectProjectStructure #383
* Revert "Add a failing test for Builder that reproduces #383"
This reverts commit e5b26933b5d4e979009f8f4341448fa8322720d2.
* ignored vscode files
Co-authored-by: Matt Wynne <matt@cucumber.io>
* undid debugging changes
* undid debugging changes
* removed redundant test
* added check for incorrect project structure
we examined the output from running `go test` which tells us if we didn't
find any test files.
we tweaked the error message to follow the capitalization rules
Co-authored-by: Matt Wynne <matt@cucumber.io>
* Update internal/builder/builder_test.go
Co-authored-by: Matt Wynne <matt@mattwynne.net>
Co-authored-by: Matt Wynne <matt@cucumber.io>
Co-authored-by: Viacheslav Poturaev <nanopeni@gmail.com>
* Switch from golint to staticcheck
* Remove unused function
run_test.go:618:6: func passingStepDefWithoutReturn is unused (U1000)
* Remove unused function
suite.go:421:6: func isEmptyFeature is unused (U1000)
* Fix unnecessary use of fmt.Sprintf
test_context_test.go:45:66: unnecessary use of fmt.Sprintf (S1039)
test_context_test.go:46:61: unnecessary use of fmt.Sprintf (S1039)
* Fix CI error
https://github.com/cucumber/godog/runs/5146601108?check_suite_focus=true#step:7:28
* Change CI to run staticcheck instead of golint
* Use staticcheck that definitely pass
* Fix CI staticcheck error
https://github.com/cucumber/godog/runs/5147133955?check_suite_focus=true#step:6:17
* Only run staticcheck for Go 1.17
Co-authored-by: Viacheslav Poturaev <nanopeni@gmail.com>
* Add staticcheck linux binary
* Update Go module dependencies in _examples
* Use static check binary in bin for CI
* Reduce number of dependencies
Also add a note to CONTRIBUTING.md about the _examples module
* Pin the version of staticcheck
Co-authored-by: Viacheslav Poturaev <nanopeni@gmail.com>
Co-authored-by: Matt Wynne <matt@cucumber.io>
Co-authored-by: Viacheslav Poturaev <nanopeni@gmail.com>