-
Notifications
You must be signed in to change notification settings - Fork 0
Refactor tests matchers #267
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
e639b47 to
1eb86c2
Compare
1eb86c2 to
1cbef3c
Compare
flomillot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice job, thanks 👍
src/test/java/org/gridsuite/modification/server/utils/Assertions.java
Outdated
Show resolved
Hide resolved
...java/org/gridsuite/modification/server/utils/assertions/AbstractModificationInfosAssert.java
Outdated
Show resolved
Hide resolved
...java/org/gridsuite/modification/server/utils/assertions/AbstractModificationInfosAssert.java
Outdated
Show resolved
Hide resolved
| @Target(ElementType.TYPE) | ||
| @Retention(RetentionPolicy.RUNTIME) | ||
| @MockBeans({@MockBean(EmbeddedElasticsearch.class), @MockBean(EquipmentInfosRepository.class), @MockBean(TombstonedEquipmentInfosRepository.class)}) | ||
| @Tag("Docker") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you add tags, is it just for informational purposes or it's planned to be used in the CI/CD ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's to distinct units tests from integration tests, as they aren't separated in folders (like tests\, it-tests`). It also permit to run for example unit tests quickly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I used tags too before to optimise CI/CD runtime, but here it's not used so I was wondering the purpose
b2ea30b to
bd19c43
Compare
16c7488 to
a8f8ebd
Compare
Signed-off-by: Slimane AMAR <[email protected]>
58f19a7 to
5f105b5
Compare
|
Kudos, SonarCloud Quality Gate passed! |








Suppress/Simplify various matchers in hypothesis application tests