betterer icon indicating copy to clipboard operation
betterer copied to clipboard

v6 coverage test log output shows both "better" and "worse" messages

Open chimericdream opened this issue 9 months ago • 0 comments

Describe the bug When running the coverageTotal test on the v6 release, I see both "(functions|lines)" coverage is worse... and `"(functions|lines)" coverage is better..." messages.

To Reproduce Unfortunately I cannot share the json summary file in question, but here is the Betterer config:

    'Test coverage': () =>
        coverageTotal('./coverage/json-summary.json')
            .include('./src/**/*.{js,cjs,mjs,ts,tsx}')
            .exclude(...ignores, './src/generated/**/*'),

Expected behavior Either a test gets better or it gets worse, not both.

Screenshots Image

Image

Versions (please complete the following information):

  • OS: MacOS 15.4 (24E248)
  • Betterer Version 6.0.0-alpha.1
  • Node Version 22.14.0

chimericdream avatar Apr 14 '25 14:04 chimericdream