Building and Testing REEF .NET

Prerequisites

  • Windows OS.
  • Building REEF Java.
  • Visual Studio 2015 (preferred) or 2013. Most REEF developers use the free Community Edition.
  • NuGet 2.8.6 or later.
  • xunit.runner.console.2.1.0 package (installing it might require manual restore of NuGet packages).

Instructions

To build and run tests in Visual Studio, open lang\cs\Org.Apache.REEF.sln, build entire solution and run all tests in Test Explore.

To build REEF.NET from command line, execute

msbuild .\lang\cs\Org.Apache.REEF.sln

To run .NET tests from command line, execute

msbuild .\lang\cs\TestRunner.proj

Continuous Integration

We use AppVeyor to run continuous integration for REEF .NET code (i.e. build and run tests for all pull requests and commits to master branch).

It can be convenient to set up AppVeyor for your fork of REEF repository, for example, to reproduce a test failure which can't be reproduced locally.

  1. Log in to AppVeyor using your GitHub credentials.
  2. Go to project creation and select reef repository.
  3. Fine-tune configuration as required at Settings tab of repository; you can enable building pushes to your repository when you‘re investigating something and disable them when you don’t need them.
  4. Edit AppVeyor configuration file as required (by default you'll use the same configuration as REEF build).