-
-
Notifications
You must be signed in to change notification settings - Fork 71
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
tester tries to run non-existing test methods #61
Comments
How do you run it? I tried the most simple case and nothing happend. Tester takes methods by reflection. use Tester\Assert;
require __DIR__ . '/bootstrap.php'; # from Tester libs
class Test extends Tester\TestCase {
/*
public function testSomething() // it will try to run this
{
///
}
*/
}
$t = new Test;
$t->run(); EDIT: I guess you run it manually by |
TestHandler runs it and this is the reason: https://github.com/nette/tester/blob/master/Tester/Runner/TestHandler.php#L145 |
This (and #62) should be solved in initiateTestCase():
I think 1) is better solution. |
Choice 1) seems better, but because of TestCases with constructor, new static method would be better. On the other side, there is a need to find a descendant of TestCase class name. It can be done by regexp, but tokenizer is better. And when the tokenizer is used, it can be used for all. |
@dg What about 3) option: Set |
Evironment variable is actually a great idea :) |
In addition, by expecting an output of |
…TESTCASE_LIST environmental variable [Closes nette#61]
…TESTCASE_LIST environmental variable [Closes nette#61]
…TESTCASE_LIST environmental variable [Closes nette#61]
…TESTCASE_LIST environmental variable [Closes nette#61]
…HODS argument [Closes nette#61]
The text was updated successfully, but these errors were encountered: