Skip to content

Commit a94a72a

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

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();
@@ -122,6 +123,7 @@ public void UpdatesExistingDynamicRepository()
122123
}
123124

124125
[Test]
126+
[Category("NoMono")]
125127
public void PicksAnotherDirectoryNameWhenDynamicRepoFolderTaken()
126128
{
127129
var repoName = Guid.NewGuid().ToString();

0 commit comments

Comments
 (0)