You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Marking test as skipped will prevent execution of all subsequent tests #379
giving no indication that second test is failing. Such behaviour causes that I prefer commenting out the test rather than makring it as skipped.
BTW if you swap the order of the tests, it will execute the failing test and fail as expected, which is inconsistent behaviour. Order of methods should never matter.
If you run this test by Tester, you'll get two results: sF That's correct. One skipped, one failed. Every test method runs in own separated process.
But if you run it as php test.phpt, the @TestCase is ignored (as mentioned in doc), and all test methods run one by one in one process, so you get only one result.
Thanks for reply, but I think it would be handy that even in "serial mode" it would run all the tests until the first real failure (skip is not really a failure), or you will be sure that all tests have passed.
Activity
milo commentedon Nov 28, 2017
If you run this test by Tester, you'll get two results:
sFThat's correct. One skipped, one failed. Every test method runs in own separated process.But if you run it as
php test.phpt, the@TestCaseis ignored (as mentioned in doc), and all test methods run one by one in one process, so you get only one result.You can try:
trebi commentedon Nov 28, 2017
Thanks for reply, but I think it would be handy that even in "serial mode" it would run all the tests until the first real failure (skip is not really a failure), or you will be sure that all tests have passed.
milo commentedon Jan 2, 2021
I hope solved by #380
TestCase: added method skip() for skipping tests [Closes #379]
TestCase: added method skip() for skipping tests [Closes #379]
TestCase: added method skip() for skipping tests [Closes #379]
TestCase: added method skip() for skipping tests [Closes #379]
TestCase: added method skip() for skipping tests [Closes #379]
TestCase: added method skip() for skipping tests [Closes #379]
TestCase: added method skip() for skipping tests [Closes #379]