-
Notifications
You must be signed in to change notification settings - Fork 28
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
FEAT: support of parametrized that have complex naming conventions #799
Comments
Hello @gibello in the It seems that the test-runner of DSpot does not support junit4 parametrized tests anymore. I might have introduced a regression. I'm going to investigate. In the meantime, I opened a pull request #805 to avoid the misleading error above. |
Actually, this happened when I had some configuration in the Do you have modified your Thank you. |
No config at all in the pom. Lanched exactly as specified in the issue : maybe not the right way to do (?), but should not produce a NPE. |
Okay, I did reproduce using the The real errors is the following:
The
to execute the test, which seems to be wrong since the test methods is parametrized. I'll implement it ASAP and keep you update. The reported errors (i.e. NPE on |
After further investigations, the problem comes from the way the parametrized tests are named. For example, in
There are two issues here:
Why it is an issue? Because to run the tests, DSpot uses the library test-runner that uses a classic java command line to execute the tests. In a command line, the spaces are used to separate arguments and the path separator is used to specify arrays/list. This is why DSpot is not able to execute the tests, and thus amplify them. To be honest, I do not have the development power nor the time to address this very specific issue. As already mentioned, the best targets for DSpot are unit tests. I suggest you move forward to another case study since this one is not applicable to DSpot. However, if anyone in your team wants to address this issue, I would be glad to support its development both on DSpot and test-runner by answering questions and giving directions to do so. Thank you very much. |
Characteristics
Description
DSpot crashes with NPE. Seems related to reporting ?
Steps to reproduce
Tested on authzforce core project (https://gitlab.ow2.org/authzforce/core).
DSpot launched in core/pdp-engine directory, as follows:
mvn eu.stamp-project:dspot-maven:2.1.1-SNAPSHOT:amplify-unit-tests -e
Ends with a NPE, and following stack:
The text was updated successfully, but these errors were encountered: