TypeStat icon indicating copy to clipboard operation
TypeStat copied to clipboard

chore(test): collect cli output in tests

Open rubiesonthesky opened this issue 9 months ago • 1 comments
trafficstars

PR Checklist

Overview

Collect CLI output in integration tests.

Added mutation stats to "log" output so we can see what kind of changes there are in integration tests.

I also added checkTestResult function so I didn't have to change every test to include output snapshotting. Which meant that I had to change every test. 😅 If no snapshot is reported as unneeded, then I should have changed every test successfully.

rubiesonthesky avatar Feb 07 '25 21:02 rubiesonthesky

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 76.59%. Comparing base (8dd19f9) to head (a1da636). :warning: Report is 183 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2198      +/-   ##
==========================================
+ Coverage   76.52%   76.59%   +0.07%     
==========================================
  Files         168      168              
  Lines        7109     7131      +22     
  Branches     1092     1101       +9     
==========================================
+ Hits         5440     5462      +22     
  Misses       1663     1663              
  Partials        6        6              
Flag Coverage Δ
mutation 70.28% <100.00%> (+0.09%) :arrow_up:
unit 14.47% <3.33%> (-0.04%) :arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Feb 07 '25 21:02 codecov[bot]