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

TestCaseRunner [WIP] #397

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

TestCaseRunner [WIP] #397

wants to merge 4 commits into from

Conversation

dg
Copy link
Member

@dg dg commented Feb 7, 2019

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.

@JanTvrdik
Copy link
Contributor

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

@dg
Copy link
Member Author

dg commented Feb 7, 2019

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

@JanTvrdik
Copy link
Contributor

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

That seems private.

@f3l1x
Copy link
Member

f3l1x commented Feb 8, 2019

@JanTvrdik Wanna join us?

@hrach
Copy link

hrach commented Feb 8, 2019

@JanTvrdik Wanna join us?

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

@mabar
Copy link

mabar commented Feb 8, 2019

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

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.

None yet

5 participants