Appveyor fixes.

This commit is contained in:
José Pedro 2017-02-21 16:19:41 +00:00
parent 8c37df18af
commit 97cefc73eb
2 changed files with 8 additions and 4 deletions

View file

@ -51,9 +51,9 @@ namespace Cosmos.TestRunner.UnitTest
{
throw;
}
catch(Exception E)
catch (Exception e)
{
Console.WriteLine("Exception occurred: " + E.ToString());
Console.WriteLine("Exception occurred: " + e.ToString());
Assert.Fail();
}
}
@ -62,7 +62,8 @@ namespace Cosmos.TestRunner.UnitTest
{
protected override void Log(string message)
{
TestContext.WriteLine(String.Concat(DateTime.Now.ToString("hh:mm:ss.ffffff "), new String(' ', mLogLevel * 2), message));
// NUnit Issue: https://github.com/nunit/nunit/issues/1952
//TestContext.WriteLine(string.Concat(DateTime.Now.ToString("hh:mm:ss.ffffff "), new string(' ', mLogLevel * 2), message));
}
}
}

View file

@ -50,12 +50,15 @@ build_script:
msbuild "Cosmos.sln" /maxcpucount /verbosity:normal /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll" /p:Platform="Any CPU" /p:Configuration=Debug /p:DeployExtension=false
test:
test: off
assemblies:
# - Cosmos.Core.Memory.Test.dll
# - DebugCompiler.dll
- Cosmos.TestRunner.UnitTest.dll
test_script:
- dotnet test Tests\Cosmos.TestRunner.UnitTest
notifications:
- provider: Webhook
url: https://webhooks.gitter.im/e/d5c57ffb9a04b1b180be