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

sgrassie / BlogHelper9000 / 8011374742
53%
master: 53%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 22 Feb 2024 09:45PM UTC
Jobs 1
Files 30
Run time 2s
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

22 Feb 2024 09:44PM UTC coverage: 57.806% (-0.5%) from 58.291%
8011374742

push

github

sgrassie
Use mocking for tests

In order to test the publish command handler, rather than check the console output, instead we can mock the ILogger and assert the right methods are called on it with the right parameters.

Add NSubsitute. This leads to quickly finding out that mocking ILogger isn't all that straightforward. Hence the addition of MockLogger, which I found on a github issue on the NSubstitute repo

99 of 174 branches covered (56.9%)

Branch coverage included in aggregate %.

486 of 838 relevant lines covered (58.0%)

14.35 hits per line

Jobs
ID Job ID Ran Files Coverage
1 8011374742.1 22 Feb 2024 09:45PM UTC 0
57.81
GitHub Action Run
Source Files on build 8011374742
Detailed source file information is not available for this build.
  • Back to Repo
  • b27d8f06 on github
  • Prev Build on main (#7989653126)
  • Next Build on main (#8146387228)
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