• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

JaCraig / Monarch / 12781333952
81%

Build:
DEFAULT BRANCH: master
Ran 15 Jan 2025 04:10AM UTC
Jobs 1
Files 21
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

15 Jan 2025 04:07AM UTC coverage: 80.478% (-2.1%) from 82.584%
12781333952

push

github

JaCraig
fix(tests): update assertions and refactor main method

Refactor Main method and replace FluentAssertions with xUnit assertions.

* Refactor `Main` method in `Program.cs` to use an expression-bodied member and add a comment for clarity.
* Remove `FluentAssertions` library and replace with `xUnit` assertions.
* Update test files to replace `FluentAssertions` methods with `xUnit` assertion methods:
  * `MonarchModuleTests.cs`: Replace `Should().BeAssignableTo<int>()` with `Assert.IsType<int>()`.
  * `CommandRunnerTests.cs`: Replace `Should().Be()` with `Assert.Equal()`, `Should().NotBeNull()` with `Assert.NotNull()`, and `Should().BeSameAs()` with `Assert.Same()`.
  * `DynamicDisplayAttributeTests.cs`: Replace `Should().NotBeNull()` with `Assert.NotNull()`, and `Should().BeSameAs()` with `Assert.Same()`.
  * `CommandManagerTests.cs`: Replace `Should().NotBeNull()` with `Assert.NotNull()`, and `Should().BeSameAs()` with `Assert.Same()`.
  * `HelpCommandTests.cs`: Replace `Should().NotBeNull()` with `Assert.NotNull()`, `Should().BeAssignableTo<string[]>()` with `Assert.IsType<string[]>()`, `Should().BeEquivalentTo()` with `Assert.Equal()`, and `Should().BeSameAs()` with `Assert.Same()`.
  * `VersionCommandTests.cs`: Replace `Should().NotBeNull()` with `Assert.NotNull()`, and `Should().Be()` with `Assert.Equal()`.
  * `ArgLexerTests.cs`: Replace `Should().NotBeNull()` with `Assert.NotNull()`, `Should().BeOfType<>()` with `Assert.IsType<>()`, and `Should().BeEquivalentTo()` with `Assert.Equal()`.
  * `CommandTests.cs`: Replace `Should().NotBeNull()` with `Assert.NotNull()`, and `Should().BeSameAs()` with `Assert.Same()`.
  * `PropertyTests.cs`: Replace `Should().Be()` with `Assert.Equal()`, `Should().NotBeNull()` with `Assert.NotNull()`, `Should().BeAssignableTo<>()` with `Assert.IsType<>()`, and `Should().BeSameAs()` with `Assert.Same()`.
  * `ArgParserTests.cs`: Replace `Should().NotBeNullOrEmpty()` with `Assert.NotEmpty()`, `Should().BeOfType<>()` with `... (continued)

199 of 282 branches covered (70.57%)

Branch coverage included in aggregate %.

1 of 1 new or added line in 1 file covered. (100.0%)

7 existing lines in 2 files now uncovered.

374 of 430 relevant lines covered (86.98%)

1028.84 hits per line

Uncovered Existing Lines

Lines Coverage ∆ File
1
81.48
-7.41% Monarch/Commands/Parser/ArgParser.cs
6
68.49
-12.33% Monarch/Commands/Lexer/ArgLexer.cs
Jobs
ID Job ID Ran Files Coverage
1 12781333952.1 15 Jan 2025 04:10AM UTC 21
80.48
GitHub Action Run
Source Files on build 12781333952
  • Tree
  • List 21
  • Changed 16
  • Source Changed 1
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #12781333952
  • 888f612f on github
  • Prev Build on master (#12717565422)
  • Next Build on master (#12797627861)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc