Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Passing Stryker options to F# project components #2680

Merged
merged 2 commits into from
Sep 29, 2023
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 @@ -5,6 +5,7 @@
using Microsoft.Extensions.Logging;
using Microsoft.FSharp.Control;
using Stryker.Core.Exceptions;
using Stryker.Core.Options;
using Stryker.Core.ProjectComponents;
using Stryker.Core.ProjectComponents.SourceProjects;
using System;
Expand All @@ -19,12 +20,14 @@ namespace Stryker.Core.Initialisation
internal class FsharpProjectComponentsBuilder : ProjectComponentsBuilder
{
private readonly SourceProjectInfo _projectInfo;
private readonly StrykerOptions _options;
private readonly string[] _foldersToExclude;
private readonly ILogger _logger;

public FsharpProjectComponentsBuilder(SourceProjectInfo projectInfo, string[] foldersToExclude, ILogger logger, IFileSystem fileSystem) : base(fileSystem)
public FsharpProjectComponentsBuilder(SourceProjectInfo projectInfo, StrykerOptions options, string[] foldersToExclude, ILogger logger, IFileSystem fileSystem) : base(fileSystem)
{
_projectInfo = projectInfo;
_options = options;
_foldersToExclude = foldersToExclude;
_logger = logger;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,7 @@ private ProjectComponentsBuilder GetProjectComponentBuilder(

Language.Fsharp => new FsharpProjectComponentsBuilder(
projectInfo,
options,
_foldersToExclude,
_logger,
FileSystem),
Expand Down
Loading