Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,17 @@ private static void CopyRemoteBranchesToHeads(IRepository repository)
}
}

[Category("LibGitSharp 0.31.0")]
[Ignore("LibGitSharp 0.31.0 fails")]
[TestCase("origin", "release-2.0.0", "2.1.0-alpha.0")]
[TestCase("custom", "release-2.0.0", "0.1.0-alpha.5")]
[TestCase("origin", "release/3.0.0", "3.1.0-alpha.0")]
[TestCase("custom", "release/3.0.0", "0.1.0-alpha.5")]
public void EnsureRemoteReleaseBranchesAreTracked(string origin, string branchName, string expectedVersion)
{
if (SysEnv.OSVersion.Platform == PlatformID.Win32NT)
{
Assert.Ignore("Test ignored on Windows - LibGitSharp 0.31.0 fails");
}

using var fixture = new RemoteRepositoryFixture("develop");

fixture.CreateBranch(branchName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,13 @@ public void TakesVersionFromNameOfRemoteReleaseBranchInOrigin()
fixture.LocalRepositoryFixture.AssertFullSemver("2.0.0-beta.1+6");
}

[Category("LibGitSharp 0.31.0")]
[Ignore("LibGitSharp 0.31.0 fails")]
[Test]
public void DoesNotTakeVersionFromNameOfRemoteReleaseBranchInCustomRemote()
{
if (SysEnv.OSVersion.Platform == PlatformID.Win32NT)
{
Assert.Ignore("Test ignored on Windows - LibGitSharp 0.31.0 fails");
}
using var fixture = new RemoteRepositoryFixture();
fixture.LocalRepositoryFixture.Repository.Network.Remotes.Rename("origin", "upstream");
fixture.BranchTo("release/2.0.0");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,13 @@ public void TakesVersionFromNameOfRemoteReleaseBranchInOrigin()
fixture.LocalRepositoryFixture.AssertFullSemver("2.0.0-7");
}

[Category("LibGitSharp 0.31.0")]
[Ignore("LibGitSharp 0.31.0 fails")]
[Test]
public void DoesNotTakeVersionFromNameOfRemoteReleaseBranchInCustomRemote()
{
if (SysEnv.OSVersion.Platform == PlatformID.Win32NT)
{
Assert.Ignore("Test ignored on Windows - LibGitSharp 0.31.0 fails");
}
using var fixture = new RemoteRepositoryFixture();
fixture.LocalRepositoryFixture.Repository.Network.Remotes.Rename("origin", "upstream");
fixture.BranchTo("release/2.0.0");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,14 @@ public void CanTakeVersionFromNameOfConfiguredReleaseBranch(string branchName, s
baseVersion.SemanticVersion.ToString().ShouldBe(expectedBaseVersion);
}

[Category("LibGitSharp 0.31.0")]
[Ignore("LibGitSharp 0.31.0 fails")]
[TestCase("origin", "release-2.0.0", "2.0.0")]
[TestCase("origin", "release/3.0.0", "3.0.0")]
public void CanTakeVersionFromNameOfRemoteReleaseBranch(string origin, string branchName, string expectedBaseVersion)
{
if (SysEnv.OSVersion.Platform == PlatformID.Win32NT)
{
Assert.Ignore("Test ignored on Windows - LibGitSharp 0.31.0 fails");
}
using var fixture = new RemoteRepositoryFixture();

fixture.CreateBranch(branchName);
Expand Down
Loading