mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-05-27 16:42:03 +00:00
4869fd5423
* Cross target Octokit.Tests against netcoreapp1.0 and net452 * Add net45-specific references This fixes a build error after adding the net452 target: error CS0656: Missing compiler required member 'Microsoft.CSharp.RuntimeBinder.CSharpArgumentInfo.Create' * Add SimpleJson conditional compilation symbols for net45 * Disable AppDomain when running tests Thanks to Dominick and Patrik: https://twitter.com/leastprivilege/status/893376624233762816 * Use nameof operator instead of magic strings * Remove conditional compilation symbols as they are not used in the conventions tests project * Enable cross targetting in the conventions tests project * Run tests against netcoreapp1.0 only when not on Windows * Going too fast bites you
17 lines
517 B
C#
17 lines
517 B
C#
using System.Linq;
|
|
using Cake.Common.Diagnostics;
|
|
using Cake.Common.Tools.DotNetCore;
|
|
using Cake.Frosting;
|
|
|
|
[Dependency(typeof(Build))]
|
|
public sealed class UnitTests : FrostingTask<Context>
|
|
{
|
|
public override void Run(Context context)
|
|
{
|
|
foreach (var project in context.Projects.Where(x => x.UnitTests))
|
|
{
|
|
context.Information("Executing Unit Tests Project {0}...", project.Name);
|
|
context.DotNetCoreTest(project.Path.FullPath, context.GetTestSettings());
|
|
}
|
|
}
|
|
} |