You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

5.0.0.md 4.7 kB

2 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. Cucumber-Ruby 5.0.0 release notes
  2. =================================
  3. This release marks an important milestone for Cucumber-Ruby - the ability
  4. to publish results to the new [Cucumber Reports](https://reports.cucumber.io) service
  5. offered by SmartBear.
  6. For other changes in this release please refer to the full [change log](../CHANGELOG.md).
  7. Cucumber Reports
  8. ----------------
  9. The purpose of this service is to make it easier for teams using Cucumber to
  10. share living documentation.
  11. Report publishing is disabled by default, and when you run Cucumber, you will see
  12. the following banner printed to `STDERR`:
  13. ```
  14. ┌──────────────────────────────────────────────────────────────────────────┐
  15. │ Share your Cucumber Report with your team at https://reports.cucumber.io │
  16. │ │
  17. │ Command line option: --publish │
  18. │ Environment variable: CUCUMBER_PUBLISH_ENABLED=true │
  19. │ cucumber.yml: default: --publish │
  20. │ │
  21. │ More information at https://reports.cucumber.io/docs/cucumber-ruby │
  22. │ │
  23. │ To disable this message, specify CUCUMBER_PUBLISH_QUIET=true or use the │
  24. │ --publish-quiet option. You can also add this to your cucumber.yml: │
  25. │ default: --publish-quiet │
  26. └──────────────────────────────────────────────────────────────────────────┘
  27. ```
  28. When publishing is enabled, Cucumber will issue an `HTTP PUT` request to
  29. `https://messages.cucumber.io/api/reports` at the end of the run. The body of this
  30. request is the [messages](https://github.com/cucumber/cucumber/tree/master/messages)
  31. generated during the run.
  32. The request is handled by an AWS Lambda function which does a `307` redirect to
  33. AWS S3 where the message stream is stored.
  34. Cucumber then prints a URL where the report can be viewed, for example:
  35. ```
  36. ┌──────────────────────────────────────────────────────────────────────────┐
  37. │ View your Cucumber Report at: │
  38. │ https://reports.cucumber.io/reports/f318d9ec-5a3d-4727-adec-bd7b69e2edd3 │
  39. │ │
  40. │ This report will self-destruct in 24h unless it is claimed or deleted. │
  41. └──────────────────────────────────────────────────────────────────────────┘
  42. ```
  43. Publishing behaviour can be modified with the following environment variables:
  44. * `CUCUMBER_PUBLISH_ENABLED` - enable publishing
  45. * `CUCUMBER_PUBLISH_TOKEN` - enable publishing using an authentication token
  46. * `CUCUMBER_PUBLISH_URL` - override the URL where messages are published
  47. * `CUCUMBER_PUBLISH_QUIET` - do not print the banner announcing how to publish reports
  48. At the time of this writing, `CUCUMBER_PUBLISH_ENABLED` and `CUCUMBER_PUBLISH_TOKEN` behave
  49. the same. When the Cucumber Reports service supports authentication, the `CUCUMBER_PUBLISH_TOKEN`
  50. environment variable will be the preferred way to publish reports, as it will restrict
  51. access to reports, and allow them to be kept for more than 24h.
  52. The `CUCUMBER_PUBLISH_URL` environment variable allows other vendors to make their own
  53. report service hosted on a different domain. The value of this environment variable can
  54. also contain `-X` and `-H` [curl](https://curl.haxx.se/)-like options to override the HTTP
  55. verb and define HTTP headers for the publishing request, for example:
  56. ```
  57. export CUCUMBER_PUBLISH_URL="https://host.com -X POST -H 'Content-Type: application/x-ndjson'"
  58. ```
  59. When `CUCUMBER_PUBLISH_TOKEN` is specified, this automatically adds an HTTP header for authentication:
  60. ```
  61. Authorization: Bearer ${CUCUMBER_PUBLISH_TOKEN}
  62. ```
  63. We would love feedback on this feature, and how we can improve it to meet your team's needs
  64. for living documentation. You will find more information at [Cucumber Reports](https://reports.cucumber.io).

No Description

Contributors (1)