godog/_examples/attachments
John Lonergan 901da7fa3d
fixed a bug where the attachments are extracted from the context too early, this prevented AfterStep from making attachments (#637)
* fixed a bug where the attachments are extracted from the context too early, this prevented AfterStep from making attachments
2024-07-23 17:22:51 +01:00
..
features Additional code review observations on Attach() functionality from https://github.com/cucumber/godog/pull/623 (#628) 2024-05-30 02:29:14 +00:00
attachments_test.go fixed a bug where the attachments are extracted from the context too early, this prevented AfterStep from making attachments (#637) 2024-07-23 17:22:51 +01:00
README.md Additional code review observations on Attach() functionality from https://github.com/cucumber/godog/pull/623 (#628) 2024-05-30 02:29:14 +00:00

An example of Making attachments to the reports

The JSON (and in future NDJSON) report formats allow the inclusion of data attachments.

These attachments could be console logs or file data or images for instance.

The example in this directory shows how the godog API is used to add attachments to the JSON report.

Run the example

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

go test -v atttachment_test.go