Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
feat: update test modules to set WorkingDirectory for DotNetTestOptions
  • Loading branch information
thomhurst committed Oct 14, 2025
commit bd2b0e5b86a0b6fd6d3db5eb3b308f64756fcbdf
3 changes: 2 additions & 1 deletion TUnit.Pipeline/Modules/RunAnalyzersTestsModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ public class RunAnalyzersTestsModule : Module<CommandResult>
{
var project = context.Git().RootDirectory.FindFile(x => x.Name == "TUnit.Analyzers.Tests.csproj").AssertExists();

return await context.DotNet().Test(new DotNetTestOptions(project)
return await context.DotNet().Test(new DotNetTestOptions
{
WorkingDirectory = project.Folder!,
NoBuild = true,
Configuration = Configuration.Release,
Framework = "net8.0",
Expand Down
3 changes: 2 additions & 1 deletion TUnit.Pipeline/Modules/RunAssertionsAnalyzersTestsModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ public class RunAssertionsAnalyzersTestsModule : Module<CommandResult>
{
var project = context.Git().RootDirectory.FindFile(x => x.Name == "TUnit.Assertions.Analyzers.Tests.csproj").AssertExists();

return await context.DotNet().Test(new DotNetTestOptions(project)
return await context.DotNet().Test(new DotNetTestOptions
{
WorkingDirectory = project.Folder!,
NoBuild = true,
Configuration = Configuration.Release,
Framework = "net8.0",
Expand Down
3 changes: 2 additions & 1 deletion TUnit.Pipeline/Modules/RunAssertionsCodeFixersTestsModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ public class RunAssertionsCodeFixersTestsModule : Module<CommandResult>
{
var project = context.Git().RootDirectory.FindFile(x => x.Name == "TUnit.Assertions.Analyzers.CodeFixers.Tests.csproj").AssertExists();

return await context.DotNet().Test(new DotNetTestOptions(project)
return await context.DotNet().Test(new DotNetTestOptions
{
WorkingDirectory = project.Folder!,
NoBuild = true,
Configuration = Configuration.Release,
Framework = "net8.0",
Expand Down
3 changes: 2 additions & 1 deletion TUnit.Pipeline/Modules/RunTemplateTestsModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ public class RunTemplateTestsModule : Module<CommandResult>
{
var project = context.Git().RootDirectory.FindFile(x => x.Name == "TUnit.Templates.Tests.csproj").AssertExists();

return await context.DotNet().Test(new DotNetTestOptions(project)
return await context.DotNet().Test(new DotNetTestOptions
{
WorkingDirectory = project.Folder!,
NoBuild = true,
Configuration = Configuration.Release,
Framework = "net9.0",
Expand Down
Loading