Page MenuHomePhabricator

Re-implementation of the xUnit.NET wrapper
Needs ReviewPublic

Authored by staticshock on Mar 13 2015, 3:29 PM.
Tags
None
Referenced Files
F19087050: D12067.diff
Dec 2 2025, 11:35 PM
F19072857: D12067.diff
Nov 30 2025, 11:43 PM
F19067048: D12067.id.diff
Nov 30 2025, 6:51 AM
F18870184: D12067.id.diff
Nov 4 2025, 3:54 PM
F18833002: D12067.diff
Oct 26 2025, 12:13 AM
F18789903: D12067.id.diff
Oct 15 2025, 11:40 AM
F18786153: D12067.diff
Oct 14 2025, 5:33 PM
F18754043: D12067.diff
Oct 4 2025, 9:07 PM

Details

Reviewers
None
Group Reviewers
Blessed Reviewers
Summary

This is a heavily refactored version of @hach-que's XUnitTestEngine.

  • Supports passing arguments to MSBuild, XBuild, and to xUnit.NET
  • Runs tests on all projects downstream of modified files

Sample .arcconfig:

{
  "unit.engine": "DotNetXUnitUnitTestEngine",
  "unit.dotnet.testprojects": {
    "@([^/]*Tests)\\.csproj$@": "bin/Release/$1.dll"
  },
  "unit.msbuild.args": ["/p:Configuration=Release"],
  "unit.dotnet.xunit.binary": "Libs/xUnit/xunit.console.clr4.x86.exe",
  "unit.dotnet.xunit.args.mono": [
    "/-trait", "Speed=Slow",
    "/-trait", "Environment=SQA"
  ]
}
Test Plan

Ran arc unit on a configured C# solution, saw proper output for
passing tests and for failing tests. Checked it out on Linux, too.

Diff Detail

Repository
rARC Arcanist
Branch
xunit
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 4873
Build 4891: [Placeholder Plan] Wait for 30 Seconds