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
Tests are not ran when JUnit 4.7 rule is used #199
Comments
From andrei.i...@gmail.com on October 08, 2009 01:58:33 Test file Attachment: RuleTest.java |
From johan.ha...@gmail.com on October 08, 2009 23:11:20 Thanks, I'll check it out asap. |
From johan.ha...@gmail.com on October 12, 2009 02:09:52 I've verified this and it seem like rules didn't work at all. I thought they did I've fixed so that these most rules should work in trunk but rules dealing with Thanks for reporting this! Status: Started |
From johan.ha...@gmail.com on October 12, 2009 02:48:05 I've now fixed so that rules works (including those that expects exceptions). Andrei, Status: Fixed |
From andrei.i...@gmail.com on October 12, 2009 03:56:02 I have some problems building the project... |
From johan.ha...@gmail.com on October 12, 2009 04:04:42 What problems do you have? It should be buildable from the sources using mvn install? I'll attach my snapshots of the runner anyways, thanks for your help so far. Ps: I hope these files are enough. |
From andrei.i...@gmail.com on October 12, 2009 04:18:19 well.. the build errors: [INFO] ------------------------------------------------------------------------
|
From andrei.i...@gmail.com on October 12, 2009 04:40:11 It seems to work now, thank you :-) |
From johan.ha...@gmail.com on October 12, 2009 04:45:59 I see, thanks for pointing this out. I have no idea what's wrong with the javadoc I've found a new error in the runner though, tests never fails on assertion errors Status: Started |
From andrei.i...@gmail.com on October 12, 2009 04:55:23 There's no need for the binaries, it seems that even with these errors, the required |
From johan.ha...@gmail.com on October 12, 2009 05:06:07 I think I've fixed the issues now (fingers crossed). So if you don't mind would you I'll also add your build issues to a new issue. |
From andrei.i...@gmail.com on October 12, 2009 05:30:45 The test with the rule seems to work after the update(rev 1047) |
From johan.ha...@gmail.com on October 12, 2009 05:40:22 Thanks a lot for your help Andrei, we really appreciate it! Status: Verified |
From andrei.i...@gmail.com on October 08, 2009 10:54:32
Steps to reproduce the problem:
System.out.println("test") statement
The expected output is
test
, but instead the console remains blankI'm using powermock-1.3 full, junit-4.7 on Win Vista
Looking at
org.powermock.modules.junit4.internal.impl.PowerMockJUnit47RunnerDelegateImpl,
on line 58, rule.apply() is called but the result is unused.
Suggested solution:
Statement statement = rule.apply(new Statement() {
@OverRide
public void evaluate() throws Throwable {
executeTestInSuper(method, testInstance, test);
}
}, new FrameworkMethod(method), testInstance);
statement.evaluate();
Original issue: http://code.google.com/p/powermock/issues/detail?id=179
The text was updated successfully, but these errors were encountered: