Skip to content
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

Update guide-testing.asciidoc #188

Open
dhelmke opened this issue Dec 16, 2019 · 0 comments
Open

Update guide-testing.asciidoc #188

dhelmke opened this issue Dec 16, 2019 · 0 comments
Labels
documentation Guides, tutorials, readmes, etc. enhancement New feature or request test

Comments

@dhelmke
Copy link
Contributor

dhelmke commented Dec 16, 2019

Like Jörg described here: #182

There are different aspects in this testing guide:
• Example for using Mockito: Needs to be updated to JUnit5. An example can be found here: https://github.com/devonfw/my-thai-star/blob/1825456aa52711c1a4103d4428e0728d1e0f0bd8/java/mtsj/core/src/test/java/com/devonfw/application/mtsj/clustermanagement/logic/impl/ClustermanagementTest.java - However, I think that the demonstration of Mockito does not have to be related to our example app (MTS) in any way. You can also get instructions/example from the web - e.g.: https://dzone.com/articles/spring-boot-2-with-junit-5-and-mockito-2-for-unit
• Example for subsystem-tests: Here the entire section is titled TODO so the current state is a mess already. We could simply give our REST testing recepie here: https://github.com/devonfw/my-thai-star/blob/ac7f2f51d109d8e9d9fdc1aade7f662f58f87024/java/mtsj/core/src/test/java/com/devonfw/application/mtsj/general/common/base/AbstractRestServiceTest.java - However, also I am thinking that this testing guide should stay rather highlevel. We should more go into a direction that when we explain features like REST or JPA that we should include a section on testing. The testing guide might link to all such places. Or is it better to have everything in that testing guide?

Link to the file: https://github.com/devonfw/devon4j/blob/develop/documentation/guide-testing.asciidoc

@dhelmke dhelmke added the enhancement New feature or request label Dec 16, 2019
@hohwille hohwille changed the title Update guide-testing.asciiodc Update guide-testing.asciidoc Aug 10, 2020
@hohwille hohwille added documentation Guides, tutorials, readmes, etc. test labels Feb 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Guides, tutorials, readmes, etc. enhancement New feature or request test
Projects
None yet
Development

No branches or pull requests

2 participants