Skip to content

Commit 1e7c45e

Browse files
authored
Minor doc and comment corrections (#644)
1 parent 6e4f452 commit 1e7c45e

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

_examples/attachments/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ The example in this directory shows how the godog API is used to add attachments
1111

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

14-
go test -v atttachment_test.go
14+
go test -v attachments_test.go
1515

1616

_examples/attachments/attachments_test.go

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,8 @@
11
package attachments_test
22

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

147
import (
158
"context"

0 commit comments

Comments
 (0)