Skip to content

Conversation

@Tristan-WorkGH
Copy link
Contributor

Suppress/Simplify various matchers in hypothesis application tests

@Tristan-WorkGH Tristan-WorkGH added the good first issue Good for newcomers label Jun 13, 2023
@Tristan-WorkGH Tristan-WorkGH self-assigned this Jun 13, 2023
@Tristan-WorkGH Tristan-WorkGH force-pushed the rework_tests_matchers branch from e639b47 to 1eb86c2 Compare June 14, 2023 08:26
@Tristan-WorkGH Tristan-WorkGH force-pushed the rework_tests_matchers branch from 1eb86c2 to 1cbef3c Compare June 14, 2023 08:36
@flomillot flomillot self-requested a review June 19, 2023 14:56
Copy link
Contributor

@flomillot flomillot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice job, thanks 👍

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@MockBeans({@MockBean(EmbeddedElasticsearch.class), @MockBean(EquipmentInfosRepository.class), @MockBean(TombstonedEquipmentInfosRepository.class)})
@Tag("Docker")
Copy link
Contributor

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 ?

Copy link
Contributor Author

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.

Copy link
Contributor

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

@Tristan-WorkGH Tristan-WorkGH requested a review from jonenst June 22, 2023 23:48
@flomillot flomillot self-requested a review June 27, 2023 15:54
@Tristan-WorkGH Tristan-WorkGH force-pushed the rework_tests_matchers branch from b2ea30b to bd19c43 Compare June 28, 2023 11:05
@SlimaneAmar SlimaneAmar force-pushed the rework_tests_matchers branch from 16c7488 to a8f8ebd Compare July 3, 2023 14:54
@SlimaneAmar SlimaneAmar force-pushed the rework_tests_matchers branch from 58f19a7 to 5f105b5 Compare July 4, 2023 08:51
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jul 4, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@Tristan-WorkGH Tristan-WorkGH merged commit ca90b45 into main Jul 4, 2023
@Tristan-WorkGH Tristan-WorkGH deleted the rework_tests_matchers branch July 4, 2023 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

good first issue Good for newcomers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants