-
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
Amplified test doesn't execute for AmplProviderTest #537
Comments
FTR here's the original test:
|
Hi @vmassol It seems that you have a registration process of your test components. I added to
and the test passes. |
Indeed, so one idea would be to generate an amplified test with the same name. We need to try if it would work for the xwiki test component registration. |
In fact, if you do not use I close this issue for now. |
But I can't do that since I only want new tests! I don't understand why there's a different file name behavior whether I use For me this issue is not closed yet. Or maybe you could close it and instead open another one about using the same file name as the original test in all cases? Thx |
This allows to copy/paste the amplified test class into the test suite without troubles:
I do understand that you would like to have a configuration that keeps the same test class name (as the original) but without original test methods because you will have two separate test suites, right?
I will introduce a new command line option that does the job, even if it seems very specific to your usage. |
Actually one interesting point is that if you change the class name you're risking breaking the test. Imagine a test that does reflection with a So I don't think it's specific to XWiki :) |
Dspot generated the following new test:
But when adding it to my test suite and executing it I get:
The text was updated successfully, but these errors were encountered: