Support attaching URLs to link to other content
@davidjgoss がすでに取り組んでいます。
2024年7月29日 から。
評価
この issue はまだ評価されていません。
説明
Problem
In Cucumber, attachments work by providing the attachment content to Cucumber which then includes it in the messages.
But sometimes you might just want to link to content that exists elsewhere but is relevant to this test case/step. Maybe it's a dump of logs, or some screenshots, or something else - anything addressable by a URL. Currently there's no way to do this. The schema for attachments has a url field, but this is intended for externalising regular attachments as a post-processing step (as done in https://github.com/cucumber/html-formatter/issues/281) rather than linking to already-external content.
Proposal
We can use the existing sort-of-standard MIME type text/uri-list for this. The idea is to:
- Provide a
linkfunction in Cucumber implementations that acts as a shorthand for attaching a URL with the above MIME type - In formatters - particularly the HTML formatter - render those attachments as a simple link
This is a similar approach to what we've done before with log.
- 主要言語
- 言語のデータがありません
- スター
- 3.4k
- フォーク
- 676
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cucumber/common のほかの issue
-
Upgrade to TypeScript 7再び着手できるかも @davidjgoss が 124 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンlanguage: javascript
-
Allowing both DocString and DataTable on a single step再び着手できるかも @mpkorstanje が 129 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
-
Enable static analysis再び着手できるかも @mpkorstanje が 220 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100