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

Fix: StrykerCLITests info text test #2713

Merged
Merged
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
d80525d
chore(deps): update dependency buildalyzer to v5.0.1 (#2665)
renovate[bot] Sep 1, 2023
5fb4f2e
chore: fix page links for site
rouke-broersma Sep 5, 2023
0ba3f77
fix: Don't fail the test run if restoring test assemblies fails (#2664)
pentp Sep 15, 2023
71219a2
chore(deps): update xunit-dotnet monorepo to v2.5.1 (#2673)
renovate[bot] Sep 18, 2023
66d566b
chore(deps): update dependency yamldotnet to v13.4.0 (#2677)
renovate[bot] Sep 20, 2023
d62fb53
chore: F# range math (#2679)
psfinaki Sep 29, 2023
e495676
chore: Passing Stryker options to F# project components (#2680)
psfinaki Sep 29, 2023
4696956
fix: Use solution file when it's available (#2690)
rouke-broersma Sep 29, 2023
579f32a
chore(compilation): Improve Error and Trace Logging (#2688)
JackSteel97 Sep 29, 2023
03f9913
fix: Remove usings from MutantControl (#2694)
dupdob Sep 29, 2023
b58ebe7
chore: Code quality improvements (#2696)
JackSteel97 Oct 4, 2023
900c3bf
docs: add SAS configuration (#2676) (#2701)
mschwrdtnr Oct 4, 2023
d6d3a81
chore(deps): update dependency launchdarkly.eventsource to v5.1.0 (#2…
renovate[bot] Oct 5, 2023
d98dd87
chore(deps): update dependency yamldotnet to v13.5.0 (#2703)
renovate[bot] Oct 5, 2023
48f9959
chore(deps): update dependency yamldotnet to v13.5.1 (#2704)
renovate[bot] Oct 5, 2023
a0a14f3
chore(deps): update dependency yamldotnet to v13.7.0 (#2705)
renovate[bot] Oct 10, 2023
0374632
chore(deps): update xunit-dotnet monorepo (#2711)
renovate[bot] Oct 13, 2023
b4f22e5
chore: Breaking down FilePattern (#2681)
psfinaki Oct 13, 2023
bb1f129
chore: Splitting some C# related extensions in a separate file (#2697)
psfinaki Oct 13, 2023
5408cfa
fix: tests for `OpenReportEnabledInput` help text
danihengeveld Oct 13, 2023
c7829f4
Merge remote-tracking branch 'upstream/master' into baseline-command
danihengeveld Oct 13, 2023
79492e5
fix: typo in re(c)reate
danihengeveld Oct 13, 2023
0e6f243
add: tests for baseline target input.
danihengeveld Oct 13, 2023
b7e5819
Merge branch 'stryker-mutator:baseline-command' into baseline-command
danihengeveld Oct 13, 2023
70be090
fix: cli info text test
danihengeveld Oct 13, 2023
e90b972
also check if WithBaselineInput is true
danihengeveld Oct 13, 2023
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
26 changes: 24 additions & 2 deletions src/Stryker.CLI/Stryker.CLI.UnitTest/StrykerCLITests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ public void ShouldDisplayInfoOnHelp()

var expected = @"Stryker: Stryker mutator for .Net

Stryker mutator for .Net
The mutation test framework for .Net

Usage: Stryker [options]
Usage: Stryker [command] [options]

Options:";
sw.ToString().ShouldStartWith(expected);
Expand Down Expand Up @@ -416,6 +416,28 @@ public void ShouldSupplyWithBaselineWhenPassed(params string[] argName)
_inputs.WithBaselineInput.SuppliedInput.Value.ShouldBeTrue();
}

[Theory]
[InlineData("baseline")]
public void ShouldSupplyWithBaselineWhenCommandPassed(params string[] argName)
{
_target.Run(argName);

_strykerRunnerMock.VerifyAll();

_inputs.WithBaselineInput.SuppliedInput.Value.ShouldBeTrue();
}

[Theory]
[InlineData("baseline", "recreate")]
public void ShouldSetBaselineRecreateWhenCommandPassed(params string[] argName)
{
_target.Run(argName);

_strykerRunnerMock.VerifyAll();

_inputs.BaselineRecreateEnabledInput.SuppliedInput.ShouldBeTrue();
danihengeveld marked this conversation as resolved.
Show resolved Hide resolved
}

[Theory]
[InlineData("-o", null)]
[InlineData("-o:html", "html")]
Expand Down
Loading