-
-
Notifications
You must be signed in to change notification settings - Fork 42
test: upgrade test suite to use latest JUnit version #326
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
Conversation
This PR is a reminder that even the simplest of problems can take a bit of your time 😢 The only test that fails it is because of a diff With JUnit4 in the classpath, gumtree-spoon resolves that @MartinWitt @I-Al-Istannen, did you see such a bug when porting JUnit 4 to JUnit 5 in spoon? |
@SirYwell do you have an idea about this? |
So in one version the class can be resolved via reflections and in the other spoon uses the no-classpath mode to try to come up with something? I don't think we encountered that in the spoon tests. But I don't see a way that allows us - while using wildcard imports - to resolve the class properly. I assume you either have to adjust the resources, or the test, or the dependencies. |
It seems we use Spoon in default mode as you can see here. Not sure how mode is changing and if it should. |
9d202a2
to
11ee207
Compare
b696900
to
980e47c
Compare
@monperrus the last few commits fix a failing test because of update in version. Reason: diff computation was taking the junit from classpath. Since it changed from 4 to 5, it caused a change in the diff. You can merge now. |
Hold on. There are some spurious changes. |
Well, let's just live with it. Those are IntelliJ defaults. I don't want to change them. |
thanks @algomaster99 |
Fixes #227
I need to upgrade in order to write good tests. I could use https://github.com/MartinWitt/laughing-train for this problem, but I was not able to build it on my system :/
The refactoring was pretty straightforward. I changed import statements,
Ignore
is now calledDisabled
, andreason
argument is not the last - afterexpected
andactual
.