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

Add unit testing to java microservices #31

Closed
5 tasks done
phemankita opened this issue May 20, 2020 · 8 comments
Closed
5 tasks done

Add unit testing to java microservices #31

phemankita opened this issue May 20, 2020 · 8 comments
Assignees
Labels
test For test cases

Comments

@phemankita
Copy link
Member

phemankita commented May 20, 2020

Implement unit testing to all the services

@oiricaud
Copy link

oiricaud commented May 27, 2020

Created a pull request-6 for Inventory microservice to include a plain smoke test and actuator test.

@oiricaud
Copy link

oiricaud commented May 27, 2020

Created a pull request-4 for Auth microservice microservice to include a plain smoke test and actuator test.

@oiricaud
Copy link

oiricaud commented May 27, 2020

Created a pull request-4 for the Orders microservice to include a plain smoke test and actuator test.

@oiricaud oiricaud added the test For test cases label May 28, 2020
@oiricaud
Copy link

oiricaud commented May 28, 2020

Created a pull request-4 for the Catalog microservice to include a plain smoke test and actuator test.

@oiricaud
Copy link

oiricaud commented May 28, 2020

FYI
I believe I found a bug on appsody view more details appsody-issue-821. In summary when using a appsody init on your spring boot stack, the MainTests class does not run the unit tests. Refactoring the default name of the class resolves this issue.

@oiricaud
Copy link

Created a pull request-13 for the Customer microservice to include a plain smoke test and actuator test.

@oiricaud
Copy link

@phemankita Can you review this when you get a chance, thanx

@phemankita
Copy link
Member Author

@oiricaud We shd have simple tests for this to validate the app flow. For this the tests should be independent of the databases.

Necessary methods can be mocked using Mockito

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test For test cases
Projects
None yet
Development

No branches or pull requests

2 participants