Skip to content

Commit

Permalink
Merge pull request #43 from carlpett/xunit-vnew
Browse files Browse the repository at this point in the history
Add support for xUnit 2.3 and 2.4
  • Loading branch information
carlpett authored Nov 14, 2018
2 parents b37dd52 + d78329d commit e55eb2b
Show file tree
Hide file tree
Showing 16 changed files with 133 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public String getRunnerPath(String runtime, String platform) {
return sb.toString();
}
});

AvailableRunners.put("2.2.0", new RunnerVersion("2.2.0",
new String[]{Runtime.dotNET45},
new String[]{Platforms.x86, Platforms.MSIL}) {
Expand All @@ -86,6 +86,34 @@ public String getRunnerPath(String runtime, String platform) {
return sb.toString();
}
});

AvailableRunners.put("2.3.x", new RunnerVersion("2.3.x",
new String[]{Runtime.dotNET45},
new String[]{Platforms.x86, Platforms.MSIL}) {
@Override
public String getRunnerPath(String runtime, String platform) {
StringBuilder sb = new StringBuilder();
sb.append("xunit.console");
if (platform.equals(Platforms.x86))
sb.append(".x86");
sb.append(".exe");
return sb.toString();
}
});

AvailableRunners.put("2.4.x", new RunnerVersion("2.4.x",
new String[]{Runtime.dotNET45},
new String[]{Platforms.x86, Platforms.MSIL}) {
@Override
public String getRunnerPath(String runtime, String platform) {
StringBuilder sb = new StringBuilder();
sb.append("xunit.console");
if (platform.equals(Platforms.x86))
sb.append(".x86");
sb.append(".exe");
return sb.toString();
}
});
}
}

Expand Down
Binary file added xunit-runner/bin/2.3.x/xunit.abstractions.dll
Binary file not shown.
Binary file added xunit-runner/bin/2.3.x/xunit.console.exe
Binary file not shown.
6 changes: 6 additions & 0 deletions xunit-runner/bin/2.3.x/xunit.console.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
Binary file added xunit-runner/bin/2.3.x/xunit.console.x86.exe
Binary file not shown.
6 changes: 6 additions & 0 deletions xunit-runner/bin/2.3.x/xunit.console.x86.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.2" />
</startup>
</configuration>
Binary file not shown.
Binary file not shown.
Binary file added xunit-runner/bin/2.4.x/xunit.abstractions.dll
Binary file not shown.
Binary file added xunit-runner/bin/2.4.x/xunit.console.exe
Binary file not shown.
7 changes: 7 additions & 0 deletions xunit-runner/bin/2.4.x/xunit.console.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true" />
<runtime>
<AppContextSwitchOverrides value="Switch.System.Diagnostics.IgnorePortablePDBsInStackTraces=false" />
</runtime>
</configuration>
Binary file added xunit-runner/bin/2.4.x/xunit.console.x86.exe
Binary file not shown.
7 changes: 7 additions & 0 deletions xunit-runner/bin/2.4.x/xunit.console.x86.exe.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true" />
<runtime>
<AppContextSwitchOverrides value="Switch.System.Diagnostics.IgnorePortablePDBsInStackTraces=false" />
</runtime>
</configuration>
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,84 @@
: if specified more than once, acts as an OR operation
-verbose : show verbose progress messages
</pre>
<pre id="commandline-help-2.3.x">
-noappdomain : do not use app domains to run test code
-failskips : convert skipped tests into failures
-stoponfail : stop on first test failure
-parallel option : set parallelization based on option
: none - turn off all parallelization
: collections - only parallelize collections
: assemblies - only parallelize assemblies
: all - parallelize assemblies & collections
-maxthreads count : maximum thread count for collection parallelization
: default - run with default (1 thread per CPU thread)
: unlimited - run with unbounded thread count
: (number) - limit task thread pool size to 'count'
-noshadow : do not shadow copy assemblies
-wait : wait for input after completion
-diagnostics : enable diagnostics messages for all test assemblies
-internaldiagnostics : enable internal diagnostics messages for all test assemblies
-debug : launch the debugger to debug the tests
-serialize : serialize all test cases (for diagnostic purposes only)
-trait "name=value" : only run tests with matching name/value traits
: if specified more than once, acts as an OR operation
-notrait "name=value" : do not run tests with matching name/value traits
: if specified more than once, acts as an AND operation
-method "name" : run a given test method (should be fully specified;
: i.e., 'MyNamespace.MyClass.MyTestMethod')
: if specified more than once, acts as an OR operation
-class "name" : run all methods in a given test class (should be fully
: specified; i.e., 'MyNamespace.MyClass')
: if specified more than once, acts as an OR operation
-namespace "name" : run all methods in a given namespace (i.e.,
: 'MyNamespace.MySubNamespace')
: if specified more than once, acts as an OR operation
</pre>
<pre id="commandline-help-2.4.x">
-failskips : convert skipped tests into failures
-stoponfail : stop on first test failure
-parallel option : set parallelization based on option
: none - turn off all parallelization
: collections - only parallelize collections
: assemblies - only parallelize assemblies
: all - parallelize assemblies & collections
-maxthreads count : maximum thread count for collection parallelization
: default - run with default (1 thread per CPU thread)
: unlimited - run with unbounded thread count
: (number) - limit task thread pool size to 'count'
-appdomains mode : choose an app domain mode
: ifavailable - choose based on library type
: required - force app domains on
: denied - force app domains off
-noshadow : do not shadow copy assemblies
-wait : wait for input after completion
-diagnostics : enable diagnostics messages for all test assemblies
-internaldiagnostics : enable internal diagnostics messages for all test assemblies
-debug : launch the debugger to debug the tests
-serialize : serialize all test cases (for diagnostic purposes only)
-trait "name=value" : only run tests with matching name/value traits
: if specified more than once, acts as an OR operation
-notrait "name=value" : do not run tests with matching name/value traits
: if specified more than once, acts as an AND operation
-method "name" : run a given test method (can be fully specified or use a wildcard;
: i.e., 'MyNamespace.MyClass.MyTestMethod' or '*.MyTestMethod')
: if specified more than once, acts as an OR operation
-nomethod "name" : do not run a given test method (can be fully specified or use a wildcard;
: i.e., 'MyNamespace.MyClass.MyTestMethod' or '*.MyTestMethod')
: if specified more than once, acts as an AND operation
-class "name" : run all methods in a given test class (should be fully
: specified; i.e., 'MyNamespace.MyClass')
: if specified more than once, acts as an OR operation
-noclass "name" : do not run any methods in a given test class (should be fully
: specified; i.e., 'MyNamespace.MyClass')
: if specified more than once, acts as an AND operation
-namespace "name" : run all methods in a given namespace (i.e.,
: 'MyNamespace.MySubNamespace')
: if specified more than once, acts as an OR operation
-nonamespace "name" : do not run any methods in a given namespace (i.e.,
: 'MyNamespace.MySubNamespace')
: if specified more than once, acts as an AND operation
</pre>
</span>
</td>
</tr>
Expand Down

0 comments on commit e55eb2b

Please sign in to comment.