Skip to content

Commit

Permalink
Minor doc and comment corrections (#644)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnlon authored Oct 5, 2024
1 parent 6e4f452 commit 1e7c45e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
2 changes: 1 addition & 1 deletion _examples/attachments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ The example in this directory shows how the godog API is used to add attachments

You must use the '-v' flag or you will not see the cucumber JSON output.

go test -v atttachment_test.go
go test -v attachments_test.go


13 changes: 3 additions & 10 deletions _examples/attachments/attachments_test.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
package attachments_test

// This example shows how to set up test suite runner with Go subtests and godog command line parameters.
// Sample commands:
// * run all scenarios from default directory (features): go test -test.run "^TestFeatures/"
// * run all scenarios and list subtest names: go test -test.v -test.run "^TestFeatures/"
// * run all scenarios from one feature file: go test -test.v -godog.paths features/nodogs.feature -test.run "^TestFeatures/"
// * run all scenarios from multiple feature files: go test -test.v -godog.paths features/nodogs.feature,features/godogs.feature -test.run "^TestFeatures/"
// * run single scenario as a subtest: go test -test.v -test.run "^TestFeatures/Eat_5_out_of_12$"
// * show usage help: go test -godog.help
// * show usage help if there were other test files in directory: go test -godog.help godogs_test.go
// * run scenarios with multiple formatters: go test -test.v -godog.format cucumber:cuc.json,pretty -test.run "^TestFeatures/"
// This example shows how to attach data to the cucumber reports
// Run the sample with : go test -v attachments_test.go
// Then review the "embeddings" within the JSON emitted on the console.

import (
"context"
Expand Down

0 comments on commit 1e7c45e

Please sign in to comment.