Test Framework - Hamcrest to AssertJ #12121
Closed
DanVanAtta
started this conversation in
General
Replies: 2 comments 3 replies
-
Is there some summary of what AssertJ brings? My main gripes with hamcrest are:
Sometimes I wonder if just sticking to the simple things JUnit has is better (and perhaps augmenting those with our own implemented asserts that we can have a library of). I'm also not in love with N different testing frameworks though. So adding a third doesn't seem great either, unless we can do some automated mass migration. |
Beta Was this translation helpful? Give feedback.
3 replies
-
To close the loop on this, I added our first use of AssertJ in 14b6ca4. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I wouldn't mind seeing new test cases use 'AssertJ'.
Hamcrest is showing some age
Switching test framework is not a priority per-say, but I think there is probably a greenlight to stop using Hamcrest in favor of AssertJ. A rule of thumb would be any given test file shall not mix both Hamcrest & AssertJ.
I'm a bit concerned about a lava-flow problem where we wind up with two different test-assertions for a very long time and then perhaps introduce a third. If we start introducing assertJ, IMO we should stick with assertJ until all of Hamcrest is gone.
Any thoughts one way or another?
Beta Was this translation helpful? Give feedback.
All reactions