Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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 e5b2693. * 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>
- Loading branch information
1 parent
237a855
commit 1a795f1
Showing
7 changed files
with
381 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,6 @@ Gopkg.toml | |
|
||
.DS_Store | ||
.idea | ||
.vscode | ||
|
||
_artifacts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
This example is to help reproduce issue [#383](https://github.com/cucumber/godog/issues/383) | ||
|
||
To run the example: | ||
|
||
cd _examples/incorrect-project-structure | ||
go run ../../cmd/godog |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module incorrect-project-structure | ||
|
||
go 1.13 | ||
|
||
require github.com/cucumber/godog v0.12.0 | ||
|
||
replace github.com/cucumber/godog => ../../ |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package main | ||
|
||
import "github.com/cucumber/godog" | ||
|
||
func InitializeScenario(ctx *godog.ScenarioContext) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters