Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to output order of test execution #54

Merged
merged 1 commit into from
Oct 13, 2021
Merged

Conversation

joelwurtz
Copy link
Member

This allow to debug in which order test has been in success or failure, this allow to better debug case when some tests are failing if executed before or after another one which can happens in a slower / faster / different environment

@joelwurtz
Copy link
Member Author

This is what it output if this option is used:

Asynit Test suite

................                             16 / 16 (100%)

Time: 7.01 seconds, Memory: 6.4MB

OK, Tests: 16, Assertions: 15.

Test orders:

 - #0 Asynit\Tests\FunctionalTests::testReturn
 - #1 Asynit\Tests\FunctionalTests::testStartParallel
 - #2 Asynit\Tests\AnotherTest::test_from_another_file
 - #3 Asynit\Tests\FunctionalTests::testDependFromAnotherFile depends on #2
 - #4 Asynit\Tests\FunctionalTests::get_a
 - #5 Asynit\Tests\FunctionalTests::get_b depends on #4
 - #6 Asynit\Tests\FunctionalTests::test_c depends on #4, #4, #5
 - #7 Asynit\Tests\AnotherTest::get_d
 - #8 Asynit\Tests\FunctionalTests::test_c_with_d depends on #4, #4, #5, #7
 - #9 Asynit\Tests\FunctionalTests::testGet
 - #10 Asynit\Tests\FunctionalTests::testDepend depends on #9
 - #11 Asynit\Tests\FunctionalTests::testException
 - #12 Asynit\Tests\HttpClientOverrideTest::testFoo2
 - #13 Asynit\Tests\HttpClientOverrideTestPromise::testFoo2
 - #14 Asynit\Tests\FunctionalTests::testParallel1
 - #15 Asynit\Tests\FunctionalTests::testParallel4
 - #16 Asynit\Tests\FunctionalTests::testParallel2
 - #17 Asynit\Tests\FunctionalTests::testParallel3
 - #18 Asynit\Tests\FunctionalTests::testEndParallel depends on #1, #14, #16, #17, #15

@lyrixx lyrixx merged commit a7d225c into master Oct 13, 2021
@lyrixx lyrixx deleted the feature/order-test branch October 13, 2021 11:09
@lyrixx
Copy link
Member

lyrixx commented Oct 13, 2021

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants