-
Notifications
You must be signed in to change notification settings - Fork 100
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
PaxExamParameterized results in NPE every time [PAXEXAM-674] #779
Comments
Harald Wellmann commented This is not exactly a self-contained test case - do you expect people to debug your project? Anyway, comparing your class to the working sample |
Benson Margulies commented Well, when someone sends me a bug report consisting of a project I can clone, build, and look at a backtrace from one test class, I'm not inclined to ask them to prune further. However, to each his own taste. For some reason I thought to try to make the Is this situation intended, or was the intention to support non-static |
Vincent Zurczak commented Hi! I have the same issue. Or were parametrized tests implemented so that the configuration method can only be static? To explain a little more, I have three test parameters. |
Benson Margulies commented Same problem I have. The only reason to use |
Vincent Zurczak commented Hi! I have been playing a little bit with the ParameterizedProbeRunner class. I still have one or two tests to complete, just to be sure, but I might do it tomorrow. |
Vincent Zurczak commented Hi! I forked the PAX Exam repository and modified two classes so that parameterized tests work with less assumptions. In the last releases, PAX Exam requires the configuration and the probe builder methods to be static. I updated the associated runner so that we can pass a PAX configuration as part of the parameterization. I also added support of the name attribute of the Parameters annotation. I confess I run tests by hand on my own project (my use case if you prefer). |
Vincent Zurczak commented BTW, here is a link to a parameterized test that uses this runner. |
INACTIVE Michael Vorburger.ch commented Vincent Zurczak ping - are alive? I'd be very interested in a PR from your about this, and would be willing to help review it, merge (although typically you are quickly granted permission to commit yourself in ops4j1..) and do a release., if that helps - if you're still interested in this project and can contribute in the not-too-distant-future? |
INACTIVE Michael Vorburger.ch commented FTR: The commit linked to above is not the latest work from Vincent Zurczak; he seems to have done further work on his master branch in a follow-up commit incl. an IT covering this. I've just cherry-picked both and squashed them and raised #72 - assuming it passes the CircleCI build, shall we get that in? |
Vincent Zurczak commented Hi Mickael, I had indeed put my work apart. I did not find time to create a separate runner. And as I said in previous comments, I had issues with some integration tests on my machine. From memory, integration tests were not run automatically in the default build. So, having the build green on Github is not a guarantee. But I may be wrong, things may have changed. 😄 |
Achim Nierbeck commented yep there is a little distinction between: |
Benson Margulies created PAXEXAM-674
See git
@github
.com:benson-basis/tcl-regex-java.git, branch pax-test-case, run 'mvn'.The code inside pax-exam internally tries to invoke a method of a null pointer.
Affects: 4.3.0, 4.4.0
Votes: 1, Watches: 5
The text was updated successfully, but these errors were encountered: