-
-
Notifications
You must be signed in to change notification settings - Fork 732
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/0.13.0' into main
- Loading branch information
Showing
139 changed files
with
3,072 additions
and
357 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ issue-labels-include: | |
- Bug | ||
- Feature | ||
- Improvement | ||
- Documentation | ||
- Documentation | ||
issue-labels-exclude: | ||
- Build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
src/Cake.Common.Tests/Fixtures/Solution/Project/ProjectParserFixture.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
using Cake.Common.Solution.Project; | ||
using Cake.Common.Tests.Properties; | ||
using Cake.Core; | ||
using Cake.Core.Diagnostics; | ||
using Cake.Core.IO; | ||
using Cake.Testing; | ||
using NSubstitute; | ||
|
||
namespace Cake.Common.Tests.Fixtures.Solution.Project | ||
{ | ||
internal sealed class ProjectParserFixture | ||
{ | ||
public ProjectParserFixture() | ||
{ | ||
ProjFilePath = "/Working/Cake.Sample.csproj"; | ||
Pattern = "/Working/Cake.*.csproj"; | ||
|
||
var environment = FakeEnvironment.CreateUnixEnvironment(); | ||
Environment = environment; | ||
var fileSystem = new FakeFileSystem(environment); | ||
fileSystem.CreateFile(ProjFilePath.FullPath).SetContent(Resources.Csproj_ProjectFile); | ||
fileSystem.CreateFile("/Working/Cake.Incomplete.csproj").SetContent(Resources.Csproj_IncompleteFile); | ||
FileSystem = fileSystem; | ||
|
||
Globber = Substitute.For<IGlobber>(); | ||
Globber.GetFiles(Pattern).Returns(new FilePath[] { "/Working/Cake.Sample.csproj", "/Working/Cake.Incomplete.csproj" }); | ||
|
||
Log = Substitute.For<ICakeLog>(); | ||
} | ||
|
||
public ICakeEnvironment Environment { get; set; } | ||
|
||
public ProjectParserResult Parse() | ||
{ | ||
var parser = new ProjectParser(FileSystem, Environment); | ||
return parser.Parse(ProjFilePath); | ||
} | ||
|
||
public ProjectParserResult ParseIncomplete() | ||
{ | ||
var parser = new ProjectParser(FileSystem, Environment); | ||
return parser.Parse("/Working/Cake.Incomplete.csproj"); | ||
} | ||
|
||
public string Pattern { get; set; } | ||
public IFileSystem FileSystem { get; set; } | ||
public IGlobber Globber { get; set; } | ||
public ICakeLog Log { get; set; } | ||
public FilePath ProjFilePath { get; set; } | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
src/Cake.Common.Tests/Fixtures/Tools/VSTestRunnerFixture.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using Cake.Common.Tools.VSTest; | ||
using Cake.Core.IO; | ||
using Cake.Testing.Fixtures; | ||
using System.Collections.Generic; | ||
|
||
namespace Cake.Common.Tests.Fixtures.Tools | ||
{ | ||
internal sealed class VSTestRunnerFixture : ToolFixture<VSTestSettings> | ||
{ | ||
public IEnumerable<FilePath> AssemblyPaths { get; set; } | ||
|
||
public VSTestRunnerFixture() | ||
: base("vstest.console.exe") | ||
{ | ||
AssemblyPaths = new[] { new FilePath("./Test1.dll") }; | ||
Environment.SetSpecialPath(SpecialPath.ProgramFilesX86, "/ProgramFilesX86"); | ||
} | ||
|
||
protected override FilePath GetDefaultToolPath(string toolFilename) | ||
{ | ||
return new FilePath("/ProgramFilesX86/Microsoft Visual Studio 11.0/Common7/IDE/CommonExtensions/Microsoft/TestWindow/vstest.console.exe"); | ||
} | ||
|
||
protected override void RunTool() | ||
{ | ||
var tool = new VSTestRunner(FileSystem, Environment, ProcessRunner, Tools); | ||
tool.Run(AssemblyPaths, Settings); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.