Skip to content
This repository was archived by the owner on Jun 27, 2019. It is now read-only.

Commit 966cc10

Browse files
committed
Ignore tests failing on Mono
Ignore tests that fail on Unix / Mono due to pathing problems, as explained in #29.
1 parent b973181 commit 966cc10

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ install:
77
- nuget install NUnit.Runners -Version 3.2.1 -OutputDirectory ./src/packages
88
script:
99
- xbuild ./src/GitTools.Core.sln /property:Configuration="Debug" /verbosity:detailed
10-
- mono --debug --runtime=v4.0.30319 ./src/packages/NUnit.ConsoleRunner.3.2.1/tools/nunit3-console.exe ./output/debug/GitTools.Core.Tests/net45/GitTools.Core.Tests.dll
10+
- mono --debug --runtime=v4.0.30319 ./src/packages/NUnit.ConsoleRunner.3.2.1/tools/nunit3-console.exe ./output/debug/GitTools.Core.Tests/net45/GitTools.Core.Tests.dll -where "cat != NoMono"

src/GitTools.Core.Tests/Git/GitRepositoryFactoryTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ public class GitRepositoryFactoryTests
1919
[Test]
2020
[TestCase(DefaultBranchName, DefaultBranchName)]
2121
[TestCase(SpecificBranchName, SpecificBranchName)]
22+
[Category("NoMono")]
2223
public void WorksCorrectlyWithRemoteRepository(string branchName, string expectedBranchName)
2324
{
2425
var repoName = Guid.NewGuid().ToString();
@@ -119,6 +120,7 @@ public void UpdatesExistingDynamicRepository()
119120
}
120121

121122
[Test]
123+
[Category("NoMono")]
122124
public void PicksAnotherDirectoryNameWhenDynamicRepoFolderTaken()
123125
{
124126
var repoName = Guid.NewGuid().ToString();

0 commit comments

Comments
 (0)