Skip to content

Commit 8f39401

Browse files
danihengeveldrenovate[bot]Renovatebotrouke-broersmapentp
authored
Fix: StrykerCLITests info text test (#2713)
* chore(deps): update dependency buildalyzer to v5.0.1 (#2665) * chore(deps): update dependency buildalyzer to v5.0.1 * Update package lock files --------- Co-authored-by: Renovatebot <[email protected]> * chore: fix page links for site * fix: Don't fail the test run if restoring test assemblies fails (#2664) * chore(deps): update xunit-dotnet monorepo to v2.5.1 (#2673) * chore(deps): update xunit-dotnet monorepo to v2.5.1 * Update package lock files --------- Co-authored-by: Renovatebot <[email protected]> * chore(deps): update dependency yamldotnet to v13.4.0 (#2677) * chore(deps): update dependency yamldotnet to v13.4.0 * Update package lock files --------- Co-authored-by: Renovatebot <[email protected]> * chore: F# range math (#2679) * F# range math * Windows x Linux * Up * chore: Passing Stryker options to F# project components (#2680) Co-authored-by: Rouke Broersma <[email protected]> * fix: Use solution file when it's available (#2690) * Use solution file when it's available * fix unit test * sonarqube * chore(compilation): Improve Error and Trace Logging (#2688) Add logs Co-authored-by: Rouke Broersma <[email protected]> * fix: Remove usings from MutantControl (#2694) chore: remove usings from MutantControl Co-authored-by: Rouke Broersma <[email protected]> * chore: Code quality improvements (#2696) * Use string builder in loop * Use find & handle other platform newlines * Use find * Fix duplicate message * Add more range tests * Improve range code * docs: add SAS configuration (#2676) (#2701) docs: add SAS configuration * chore(deps): update dependency launchdarkly.eventsource to v5.1.0 (#2702) * chore(deps): update dependency launchdarkly.eventsource to v5.1.0 * Update package lock files --------- Co-authored-by: Renovatebot <[email protected]> * chore(deps): update dependency yamldotnet to v13.5.0 (#2703) * chore(deps): update dependency yamldotnet to v13.5.0 * Update package lock files --------- Co-authored-by: Renovatebot <[email protected]> * chore(deps): update dependency yamldotnet to v13.5.1 (#2704) * chore(deps): update dependency yamldotnet to v13.5.1 * Update package lock files --------- Co-authored-by: Renovatebot <[email protected]> * chore(deps): update dependency yamldotnet to v13.7.0 (#2705) * chore(deps): update dependency yamldotnet to v13.7.0 * Update package lock files --------- Co-authored-by: Renovatebot <[email protected]> * chore(deps): update xunit-dotnet monorepo (#2711) * chore(deps): update xunit-dotnet monorepo * Update package lock files --------- Co-authored-by: Renovatebot <[email protected]> * chore: Breaking down FilePattern (#2681) * Simplifying DiffIgnoreChangesInput * Update FilePattern.cs * Up * up * Rename the class * up --------- Co-authored-by: Rouke Broersma <[email protected]> * chore: Splitting some C# related extensions in a separate file (#2697) Splitting some C# related extensions in a separate file Co-authored-by: Rouke Broersma <[email protected]> * fix: tests for `OpenReportEnabledInput` help text * fix: typo in re(c)reate * add: tests for baseline target input. change: target input default to 'master' to stay consistent with since target input. * fix: cli info text test * also check if WithBaselineInput is true --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Renovatebot <[email protected]> Co-authored-by: Rouke Broersma <[email protected]> Co-authored-by: Pent Ploompuu <[email protected]> Co-authored-by: Petr <[email protected]> Co-authored-by: Rouke Broersma <[email protected]> Co-authored-by: Jack Steel <[email protected]> Co-authored-by: Cyrille DUPUYDAUBY <[email protected]> Co-authored-by: Max S <[email protected]>
1 parent 02193a7 commit 8f39401

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

src/Stryker.CLI/Stryker.CLI.UnitTest/StrykerCLITests.cs

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,9 @@ public void ShouldDisplayInfoOnHelp()
5959

6060
var expected = @"Stryker: Stryker mutator for .Net
6161
62-
Stryker mutator for .Net
62+
The mutation test framework for .Net
6363
64-
Usage: Stryker [options]
64+
Usage: Stryker [command] [options]
6565
6666
Options:";
6767
sw.ToString().ShouldStartWith(expected);
@@ -416,6 +416,29 @@ public void ShouldSupplyWithBaselineWhenPassed(params string[] argName)
416416
_inputs.WithBaselineInput.SuppliedInput.Value.ShouldBeTrue();
417417
}
418418

419+
[Theory]
420+
[InlineData("baseline")]
421+
public void ShouldSupplyWithBaselineWhenCommandPassed(params string[] argName)
422+
{
423+
_target.Run(argName);
424+
425+
_strykerRunnerMock.VerifyAll();
426+
427+
_inputs.WithBaselineInput.SuppliedInput.Value.ShouldBeTrue();
428+
}
429+
430+
[Theory]
431+
[InlineData("baseline", "recreate")]
432+
public void ShouldSetBaselineRecreateWhenCommandPassed(params string[] argName)
433+
{
434+
_target.Run(argName);
435+
436+
_strykerRunnerMock.VerifyAll();
437+
438+
_inputs.WithBaselineInput.SuppliedInput.Value.ShouldBeTrue();
439+
_inputs.BaselineRecreateEnabledInput.SuppliedInput.ShouldBeTrue();
440+
}
441+
419442
[Theory]
420443
[InlineData("-o", null)]
421444
[InlineData("-o:html", "html")]

0 commit comments

Comments
 (0)