All Projects → planetarium → xunit-unity-runner

planetarium / xunit-unity-runner

Licence: GPL-3.0 License
Run Xunit tests on Unity player

Programming Languages

C#
18002 projects
shell
77523 projects

Projects that are alternatives of or similar to xunit-unity-runner

XunitContext
Extends xUnit to expose extra context and simplify logging
Stars: ✭ 127 (+876.92%)
Mutual labels:  xunit
ArchitectNow.ApiStarter
Sample ASP.NET Core 2 API Setup used by ArchitectNow for corresponding workshop presentations
Stars: ✭ 35 (+169.23%)
Mutual labels:  xunit
contoso-university
Contoso University demo using asp net core and related technologies
Stars: ✭ 42 (+223.08%)
Mutual labels:  xunit
xharness
C# command line tool for running tests on Android / iOS / tvOS devices and simulators
Stars: ✭ 123 (+846.15%)
Mutual labels:  xunit
bitrix-module-bunit
BUnit - фреймворк модульного тестрования для CMS Bitrix
Stars: ✭ 20 (+53.85%)
Mutual labels:  xunit
kekiri
A .NET framework that supports writing low-ceremony BDD tests using Gherkin language
Stars: ✭ 19 (+46.15%)
Mutual labels:  xunit
resharper-xunit-templates
ReSharper Live Templates for xUnit.net
Stars: ✭ 18 (+38.46%)
Mutual labels:  xunit
pact-workshop-dotnet-core-v1
A workshop for Pact using .NET Core
Stars: ✭ 66 (+407.69%)
Mutual labels:  xunit
xunit.testlogger
XUnit logger for vstest platform
Stars: ✭ 65 (+400%)
Mutual labels:  xunit
test-class
Test::Class - an xUnit testing framework for Perl 5.x
Stars: ✭ 18 (+38.46%)
Mutual labels:  xunit
MsCoreOne
MsCoreOne is a simple Ecommerce with using many technologies such as .NET 5, Entity Framework Core 5, React 16.13 with modern Clean Architecture, Domain-Driven Design, CQRS, SOLID, Identity Server 4, Blazor. It will focus on resolving the problems always see in the process to develop projects.
Stars: ✭ 77 (+492.31%)
Mutual labels:  xunit
xunit-to-junit
This Extensible Stylesheet Language Transformations can transform a xUnit.net v2 XML test results file into a JUnit test results file.
Stars: ✭ 21 (+61.54%)
Mutual labels:  xunit
testcontainers-dotnet
dotnet port of testcontainers-java
Stars: ✭ 22 (+69.23%)
Mutual labels:  xunit
MinimalApi
ASP.NET Core 7.0 - Minimal API Example - Todo API implementation using ASP.NET Core Minimal API, Entity Framework Core, Token authentication, Versioning, Unit Testing, Integration Testing and Open API.
Stars: ✭ 156 (+1100%)
Mutual labels:  xunit
iisexpress-testkit
IIS Express TestKit
Stars: ✭ 13 (+0%)
Mutual labels:  xunit
bUnit
bUnit is a testing library for Blazor components that make tests look, feel, and runs like regular unit tests. bUnit makes it easy to render and control a component under test’s life-cycle, pass parameter and inject services into it, trigger event handlers, and verify the rendered markup from the component using a built-in semantic HTML comparer.
Stars: ✭ 857 (+6492.31%)
Mutual labels:  xunit
FakeItEasy.AutoFakeIt
A very simple, yet flexible, "AutoFaker" for FakeItEasy to easily auto generate classes with faked dependencies.
Stars: ✭ 15 (+15.38%)
Mutual labels:  xunit
Kodkod
https://github.com/alirizaadiyahsi/Nucleus Web API layered architecture startup template with ASP.NET Core 2.1, EF Core 2.1 and Vue Client
Stars: ✭ 45 (+246.15%)
Mutual labels:  xunit
xunit-orderer
Implementation of ITestCaseOrderer enforcing xUnit to run the facts in strict order
Stars: ✭ 15 (+15.38%)
Mutual labels:  xunit
Xunit.Categories
Friendlier attributes to help categorize your tests
Stars: ✭ 85 (+553.85%)
Mutual labels:  xunit

xUnit.net Unity Runner

This program runs xUnit.net-based unit tests on Unity player so that a software work well on Unity's peculiar runtime environment, which differs from stable Mono.

You can download the executable binaries from the releases page.

This program takes one or more absolute paths to .NET assembly files (.dll) and run tests in them, e.g.:

./StandaloneLinux64 "$(pwd)"/YourTests.dll
StandaloneWindows64.exe C:\path\to\YourTests.dll

It also takes several options like -c/--select-class and -T/--exclude-trait-condition. See --help for details.

On macOS you need to invoke the actual executable binary in StandardOSX.app/Contents/MacOS/ directory, e.g.:

StandaloneOSX.app/Contents/MacOS/unity-xunit "$(pwd)"/YourTests.dll

Note that .dll files to test should target on .NET Framework (e.g., net461), not .NET Core.

CircleCI-style parallelism1

There are two options for running tests in distributed nodes: -D/--distributed and -s/--distributed-seed. The former option takes an argument in the N/M format, where N is the current node's zero-indexed number and M is the total number of distributed nodes. This option selects the subset of the test cases2 for the current node, and this guarantees two different nodes never run the same test case, which is redundant.

For example, the following options make the test execution to take advantage of CircleCI's parallelism:

--distributed=$CIRCLE_NODE_INDEX/$CIRCLE_NODE_TOTAL \
--distributed-seed=$CIRCLE_BUILD_NUM

FAQ

I got Magic number is wrong: 542 error. I'm on Linux.

If the TERM environment variable is not set or it's a value unsupported by Mono (e.g., xterm-256color) yet Unity player's built-in Mono runtime could throw such an exception. You could work around this by setting it xterm:

TERM=xterm ./StandaloneLinux64 "$(pwd)"/YourTests.dll

See also the related issue on the Mono project:

https://github.com/mono/mono/issues/6752

Footnotes

  1. See also CircleCI's related docs: Running Tests in Parallel.

  2. Before a subset is selected, all test filters are applied first. Therefore, all distributed nodes have to apply the same set of filters.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].