Skip to content

PROTOTYPE: Formatters external attachments aligned with test framework#1056

Draft
clrudolphi wants to merge 19 commits intomainfrom
prototype_Formatters_ExternalAttachmentsAlignedWithTestFramework
Draft

PROTOTYPE: Formatters external attachments aligned with test framework#1056
clrudolphi wants to merge 19 commits intomainfrom
prototype_Formatters_ExternalAttachmentsAlignedWithTestFramework

Conversation

@clrudolphi
Copy link
Contributor

🤔 What's changed?

NOTE: Not ready for merge. This PR is branched from PR #984.
NOTE: This PR provides an alternate implementation to the prototype in PR #1015.

⚡️ What's your motivation?

Each test framework either supports including a link to a test attachment in its test results or will embed the contents of the attachment within the report. In this PR, Formatters aligns with that behavior. If the test framework links, then Formatters will link via an ExternalAttachment message; or if the test framework embeds content, then the Formatters will embed via an Attachment message.

A public property is added to IUnitTestRunTimeProvider such that each plug-in can indicate what style of attachment handling should be used.

The overall implementation is simpler than the other prototype as we have no configuration to resolve and behavior is not specific to any given formatter.

🏷️ What kind of change is this?

  • 💥 Breaking change (incompatible changes to the API)

♻️ Anything particular you want feedback on?

📋 Checklist:

  • I've changed the behaviour of the code
    • I have added/updated tests to cover my changes.
  • My change requires a change to the documentation.
    • I have updated the documentation accordingly.
  • Users should know about my change
    • I have added an entry to the "[vNext]" section of the CHANGELOG, linking to this pull request & included my GitHub handle to the release contributors list.

This text was originally taken from the template of the Cucumber project, then edited by hand. You can modify the template here.

clrudolphi and others added 17 commits January 3, 2026 13:10
…Messages 31.1.0 and HtmlFormatter 22.3.0. This supports the addition of the Location property to Pickles.

Updated Formatters.Tests to use the latest release of the CCK scenarios and samples.
…atuses scenario and other minor restructuring)
Adjusted test .csproj to embed the CCK assets in test output assembly.
Fixed Formatters to conform to Messages expectation that Pending steps have no error message text.
Moved the 'all-statuses' scenario to NonCompliant until ambiguous step match arguments can be surfaced.
…ither link to external attachments in its reports or embed file contents. This prototype aligns with that behavior so that Formatter handling of attachments is driven according to which test framework is being used.
@clrudolphi clrudolphi marked this pull request as draft March 10, 2026 20:04
@clrudolphi clrudolphi requested a review from gasparnagy March 10, 2026 20:04
@clrudolphi clrudolphi changed the title Prototype formatters external attachments aligned with test framework PROTOTYPE: Formatters external attachments aligned with test framework Mar 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants