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

Unit test generated by RoostGPT #154

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

harishagrawal
Copy link

@harishagrawal harishagrawal commented May 7, 2024

Please pull these awesome changes in!
Test Name      - java-springboot
AI Type        - Claude AI
AI Model       - claude-3-opus-20240229
Test Type      - Unit test
Use Type       - ui
Language       - java
Test Framework - Junit5

RoostGPT Logs
Coverage Report

Using AI Model claude-3-opus-20240229
Using AI Model claude-3-opus-20240229, for user feedback: Improve the test to avoid this error
```
[ERROR] Tests run: 4, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.802 s <<< FAILURE! - in com.bootexample4.products.controller.ProductControllerGetProductByIdTest
[ERROR] getProductByIdNull  Time elapsed: 0.012 s  <<< FAILURE!
org.opentest4j.AssertionFailedError: Expected java.lang.IllegalArgumentException to be thrown, but nothing was thrown.
	at com.bootexample4.products.controller.ProductControllerGetProductByIdTest.getProductByIdNull(ProductControllerGetProductByIdTest.java:134)

[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR]   ProductControllerGetProductByIdTest.getProductByIdNull:134 Expected java.lang.IllegalArgumentException to be thrown, but nothing was thrown.
[INFO]

```
Using AI Model claude-3-opus-20240229, for user feedback: comment out the test getProductByIdNull()
@harishagrawal
Copy link
Author

harishagrawal commented May 7, 2024

Surefire plugin report

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

Successfully merging this pull request may close these issues.

1 participant