-
-
Notifications
You must be signed in to change notification settings - Fork 73
Closed
Description
- bug report? yes
- feature request? no
- version: 2.0.0
Description
If test is marked as skipped, all subsequent tests will not execute.
Steps To Reproduce
- Create file
<?php declare(strict_types=1);
namespace Tester\BugReport;
use Tester\Assert;
require __DIR__ . '/../bootstrap.php';
/** @TestCase */
final class BugReportTest extends \Tester\TestCase
{
public function testSkip(): void
{
\Tester\Environment::skip();
}
public function testFail(): void
{
Assert::true(false);
}
}
(new BugReportTest)->run();- Run the file, the output will be:
Skipped:
Process finished with exit code 177
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.
Metadata
Metadata
Assignees
Labels
No labels