tester icon indicating copy to clipboard operation
tester copied to clipboard

TestCaseRunner [WIP]

Open dg opened this issue 6 years ago • 6 comments

Can run multiple TestCase tests:

/**
 * @testCase
 */

declare(strict_types=1);

namespace Tester;

require __DIR__ . '/../src/bootstrap.php';

(new TestCaseRunner)
	->findTests(__DIR__ . '/Test*.php')
	->run();

~~The next step could be removal of @testcase~~ … Done.

dg avatar Feb 07 '19 19:02 dg

Can you explain the use case? What problem does this solve?

JanTvrdik avatar Feb 07 '19 22:02 JanTvrdik

Discussed here https://f3l1x.slack.com/messages/C69LKE8P2

dg avatar Feb 07 '19 22:02 dg

Discussed here https://f3l1x.slack.com/messages/C69LKE8P2

That seems private.

JanTvrdik avatar Feb 08 '19 08:02 JanTvrdik

@JanTvrdik Wanna join us?

f3l1x avatar Feb 08 '19 09:02 f3l1x

@JanTvrdik Wanna join us?

No, I want to see just the answer to Jan Tvrdik's question ;)

hrach avatar Feb 08 '19 09:02 hrach

It should make possible to separate test definition from it's execution so tests could be e.g. analysed with phpstan.

mabar avatar Feb 08 '19 09:02 mabar