Timeline for Run PHPUnit Tests in Certain Order
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 27, 2022 at 7:42 | comment | added | eldorjon | This should have been the accepted answer as it clearly answers the question and the issue that tests must not depend on each other is the concern of the developer. Running tests in certain order is more of like a developer taste IMHO, and not necessarily meaning tests should not be dependent. | |
Mar 10, 2022 at 5:48 | comment | added | Svdb |
Instead of <file>file1</file> , you can also use <directory>tests/Service</directory>
|
|
Mar 24, 2021 at 13:57 | comment | added | Gino Pane | @AttilaSzeremi unfortunately, yes. I did look into this issue since then, so maybe there's a better one now. I believe it is better to have a working (though not perfect) solution than no solution at all :) | |
Mar 24, 2021 at 11:00 | comment | added | Attila Szeremi | Is this answer implying that every single test file would need to explicitly be listed, even if there are hundreds of test files? This doesn't look to be a good solution. | |
Jan 5, 2021 at 8:10 | review | Suggested edits | |||
Jan 5, 2021 at 9:27 | |||||
Nov 24, 2019 at 12:54 | comment | added | Smamatti | Has someone tested yet, if this is true for parallel execution of PHPUnit tests? | |
Aug 13, 2018 at 15:49 | comment | added | Ben Johnson | Perfect! Not every test is a Unit test; when writing HTTP Request or Feature tests, for example, state changes may need to be preserved across test classes, and in such cases, this is the most reliable approach to running tests in a meaningful sequence. | |
Jul 28, 2017 at 8:15 | comment | added | emfi | i think this is the only reliable solution | |
Jul 26, 2017 at 10:09 | history | answered | Gino Pane | CC BY-SA 3.0 |