Skip to content

[Feature]: Add support for test attachments #4073

@DaRosenberg

Description

@DaRosenberg

Problem Statement

We recently started migration of our whole test suite from NUnit to TUnit. We quickly realized there might be a blocker for us: we make extensive use of test attachments, particularly in integration tests. For us they are indispensable for figuring out why integration tests fail.

In NUnit we do TestContext.AddTestAttachment(filePath, name) but I cannot find anything in the TUnit TestContext that looks like an equivalent, nor can I find any mention of attachments or artifacts in the docs.

As far as I can tell it was added to MTP 1.7 back in March.

Is this already possible in TUnit and I've just not looked in the right place? If not, any chance we could get this added to TUnit?

Proposed Solution

I would like TUnit to support test attachments through a mechanism similar to that of NUnit.

Alternatives Considered

No response

Feature Category

Test Output / Reporting

How important is this feature to you?

Critical - blocking my adoption/usage of TUnit

Additional Context

No response

Contribution

  • I'm willing to submit a pull request for this feature

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions