Skip to content

Detect skipped tests #105

@ivantodorovich

Description

@ivantodorovich

The CI is often giving a false positive when unit tests using upstream common tests classes that are tagged to skip in some conditions, like a missing Charts of Account.

This results in:

  • Tests succeeding because they are never executed
  • Coverage failing, but often ignored during reviews

Odoo will emit a log like this in such cases, which could perhaps be detected by checklog-odoo .. ?

2025-08-22 05:43:43,275 470 INFO odoo odoo.tests.suite: skipped setUpClass (odoo.addons.pos_default_partner.tests.test_pos_default_partner.TestPosDefaultPartner) : Accounting Tests skipped because the user's company has no chart of accounts. 

It would require some improvements, though, to be able to catch specific INFO logs

In the context of OCA, I don't think we ever want to skip a unit tests. So there are probably no valid reasons to not fail when a test is skipped

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions