Skip to content

Allow running slow tests in CLI #583

@yoannblot

Description

@yoannblot

Context

I would like to use slow-test-detector in a CI, like GitHub Actions.
In my phpunit.xml file, I have different testsuites (unit, integration...).
Each testsuite should have a different configuration.

We can not use the <extension> parameters to do it.

Expected Result

  1. Could it be possible to run it in CLI with args, like?
php vendor/bin/phpunit --configuration phpunit.xml --testsuite=unit --slow-test-detector-maximum-duration=20
  1. Can the result fails when at least 1 test does not respect the condition ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions