]> khamidou — GitHub mirrors - arcanist.git/commit
Add C# tools and xUnit unit test engines.
authorJames Rhodes <jrhodes@redpointsoftware.com.au>
Mon, 23 Sep 2013 12:32:34 +0000 (05:32 -0700)
committerepriestley <git@epriestley.com>
Mon, 23 Sep 2013 12:32:34 +0000 (05:32 -0700)
commit4ba895c30d1056de0e27087740ed6d359b9ddf6e
tree45822ed307192871b450adc37f64b9fa0bb59f1e
parent75737c6d891d714e1f3d38e9ec7a2bf27d21d7ed
Add C# tools and xUnit unit test engines.

Summary:
This implements Arcanist support for the xUnit testing framework.  It also supports code coverage by way of `cstools` (which is something I've written).

The unit test support works under both Linux and Windows, while the code coverage support has only been tested under Linux (one would assume it would also work under Windows given that Windows has a super-set of functionality in the C# world).

The Arcanist support assumes that the directory layout will be something like:

  * MyProject
  * MyProject.Tests

When files are changed in either MyProject or MyProject.Tests, it causes MyProject.Tests to be built and the xUnit runner to be executed on the resulting binary.

Test Plan: I guess if really wanted to, you could create a C# project in MonoDevelop, set up `.arcconfig` to point to this unit test engine, and download and build xUnit and cstools.  Run `arc unit --coverage` to see the results of your unit test coverage.

Reviewers: epriestley

Reviewed By: epriestley

CC: Korvin, aran
Maniphest Tasks: T3859

Differential Revision: https://secure.phabricator.com/D7058
src/__phutil_library_map__.php
src/unit/engine/CSharpToolsTestEngine.php [new file with mode: 0644]
src/unit/engine/XUnitTestEngine.php [new file with mode: 0644]