Skip to content

Preserve test output for dynamically skipped tests - #149

Merged
AArnott merged 1 commit into
mainfrom
aarnott-fix-issue-16
Aug 24, 2026
Merged

Preserve test output for dynamically skipped tests#149
AArnott merged 1 commit into
mainfrom
aarnott-fix-issue-16

Conversation

@AArnott

@AArnott AArnott commented Aug 24, 2026

Copy link
Copy Markdown
Owner

Fixes #16.

When a failure is converted into a skipped result, preserve the original result's captured output and execution time instead of using xUnit v2's TestSkipped implementation, which initializes both values to empty/zero.

Adds a regression test that writes through ITestOutputHelper before dynamically skipping.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@AArnott
AArnott merged commit c45022f into main Aug 24, 2026
4 checks passed
@AArnott
AArnott deleted the aarnott-fix-issue-16 branch August 24, 2026 14:58
CurtHagenlocher pushed a commit to adbc-drivers/hiveserver2 that referenced this pull request Aug 24, 2026
Updated
[Xunit.SkippableFact](https://github.com/AArnott/Xunit.SkippableFact)
from 1.5.61 to 1.5.85.

<details>
<summary>Release notes</summary>

_Sourced from [Xunit.SkippableFact's
releases](https://github.com/AArnott/Xunit.SkippableFact/releases)._

## 1.5.85

## What's Changed

* Add release package code signing by @​AArnott in
AArnott/Xunit.SkippableFact#148
* Preserve test output for dynamically skipped tests by @​AArnott in
AArnott/Xunit.SkippableFact#149

## New Contributors
* @​Youssef1313 made their first contribution in
AArnott/Xunit.SkippableFact#109

**Full Changelog**:
AArnott/Xunit.SkippableFact@v1.5.61...v1.5.85

Commits viewable in [compare
view](AArnott/Xunit.SkippableFact@v1.5.61...v1.5.85).
</details>

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=Xunit.SkippableFact&package-manager=nuget&previous-version=1.5.61&new-version=1.5.85)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
github-actions Bot added a commit to secana/PeNet that referenced this pull request Aug 27, 2026
Updated
[Xunit.SkippableFact](https://github.com/AArnott/Xunit.SkippableFact)
from 1.5.61 to 1.5.85.

<details>
<summary>Release notes</summary>

_Sourced from [Xunit.SkippableFact's
releases](https://github.com/AArnott/Xunit.SkippableFact/releases)._

## 1.5.85

## What's Changed

* Add release package code signing by @​AArnott in
AArnott/Xunit.SkippableFact#148
* Preserve test output for dynamically skipped tests by @​AArnott in
AArnott/Xunit.SkippableFact#149

## New Contributors
* @​Youssef1313 made their first contribution in
AArnott/Xunit.SkippableFact#109

**Full Changelog**:
AArnott/Xunit.SkippableFact@v1.5.61...v1.5.85

Commits viewable in [compare
view](AArnott/Xunit.SkippableFact@v1.5.61...v1.5.85).
</details>

[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=Xunit.SkippableFact&package-manager=nuget&previous-version=1.5.61&new-version=1.5.85)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>
This was referenced Aug 30, 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.

using 'Skip.If(true, comment)' wipes out any previous XUnitOutput.WriteLine

1 participant