integration tests: write in the console the path toward repo created
to make debugging easier
This commit is contained in:
@@ -2,16 +2,20 @@
|
||||
using GitTfs.Core.TfsInterop;
|
||||
using Xunit;
|
||||
using LibGit2Sharp;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace GitTfs.Test.Integration
|
||||
{
|
||||
public class BootstrapTests : BaseTest, IDisposable
|
||||
{
|
||||
private readonly ITestOutputHelper _output;
|
||||
private readonly IntegrationHelper h = new IntegrationHelper();
|
||||
|
||||
public BootstrapTests()
|
||||
public BootstrapTests(ITestOutputHelper output)
|
||||
{
|
||||
_output = output;
|
||||
h.SetupFake(_ => { });
|
||||
_output.WriteLine("Repository in folder: " + h.Workdir);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
||||
@@ -4,6 +4,7 @@ using LibGit2Sharp;
|
||||
using GitTfs.Core.TfsInterop;
|
||||
using GitTfs.Test.Fixtures;
|
||||
using Xunit;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace GitTfs.Test.Integration
|
||||
{
|
||||
@@ -12,11 +13,14 @@ namespace GitTfs.Test.Integration
|
||||
// This will cause the hashes to differ on computers in different time zones.
|
||||
public class CloneTests : BaseTest, IDisposable
|
||||
{
|
||||
private readonly ITestOutputHelper _output;
|
||||
private readonly IntegrationHelper h;
|
||||
|
||||
public CloneTests()
|
||||
public CloneTests(ITestOutputHelper output)
|
||||
{
|
||||
_output = output;
|
||||
h = new IntegrationHelper();
|
||||
_output.WriteLine("Repository in folder: " + h.Workdir);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
@@ -242,6 +246,7 @@ namespace GitTfs.Test.Integration
|
||||
commit: "843a915aea98894fef51379d68a0f309e8537dd5",
|
||||
tree: "cf8a497b3a40028bee363a613fe156b9d37350bb");
|
||||
}
|
||||
|
||||
private readonly string[] RefsInNewClone = new[] { "HEAD", "refs/heads/master", "refs/remotes/tfs/default" };
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,16 +1,20 @@
|
||||
using System;
|
||||
using GitTfs.Core.TfsInterop;
|
||||
using Xunit;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace GitTfs.Test.Integration
|
||||
{
|
||||
public class FetchTests : BaseTest, IDisposable
|
||||
{
|
||||
private readonly ITestOutputHelper _output;
|
||||
private readonly IntegrationHelper integrationHelper;
|
||||
|
||||
public FetchTests()
|
||||
public FetchTests(ITestOutputHelper output)
|
||||
{
|
||||
_output = output;
|
||||
integrationHelper = new IntegrationHelper();
|
||||
_output.WriteLine("Repository in folder: " + integrationHelper.Workdir);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
||||
@@ -4,16 +4,20 @@ using GitTfs.Core;
|
||||
using GitTfs.Core.TfsInterop;
|
||||
using StructureMap;
|
||||
using Xunit;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace GitTfs.Test.Integration
|
||||
{
|
||||
public class GitRepositoryTests : BaseTest, IDisposable
|
||||
{
|
||||
private readonly ITestOutputHelper _output;
|
||||
private readonly IntegrationHelper h = new IntegrationHelper();
|
||||
|
||||
public GitRepositoryTests()
|
||||
public GitRepositoryTests(ITestOutputHelper output)
|
||||
{
|
||||
_output = output;
|
||||
h.SetupFake(_ => { });
|
||||
_output.WriteLine("Repository in folder: " + h.Workdir);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
||||
@@ -1,15 +1,19 @@
|
||||
using System;
|
||||
using GitTfs.Core.TfsInterop;
|
||||
using Xunit.Abstractions;
|
||||
|
||||
namespace GitTfs.Test.Integration
|
||||
{
|
||||
public class InitTests : BaseTest, IDisposable
|
||||
{
|
||||
private readonly ITestOutputHelper _output;
|
||||
private readonly IntegrationHelper h;
|
||||
|
||||
public InitTests()
|
||||
public InitTests(ITestOutputHelper output)
|
||||
{
|
||||
_output = output;
|
||||
h = new IntegrationHelper();
|
||||
_output.WriteLine("Repository in folder: " + h.Workdir);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
|
||||
@@ -17,7 +17,8 @@ namespace GitTfs.Test.Integration
|
||||
#region manage the work directory
|
||||
|
||||
private string _workdir;
|
||||
private string Workdir
|
||||
|
||||
public string Workdir
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user