Skip to content

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

@chimericdream

Description

@chimericdream

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions