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 #142

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Unit test generated by RoostGPT #142

wants to merge 1 commit into from

Conversation

Divyeshzb
Copy link
Collaborator

Please pull these awesome changes in!
Test Name      - dm-march-java-test
AI Type        - Azure Open AI
AI Model       - roost-gpt4-32k
Test Type      - Unit test
Use Type       - ui
Language       - java
Test Framework - Junit4

Access Logs At - https://dev.roost.ai/roostgpt/logs?trigger_id=a672994e-175a-4d32-bcbe-ca37f56fcb1b

Using AI Model roost-gpt4-32k
import static org.junit.Assert.*;

@RunWith(JUnit4.class)
public class ProductTest {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

class name and file name is different here. This is resulting in compilation failure

@Divyeshzb
Copy link
Collaborator Author

[ERROR] Tests run: 46, Failures: 6, Errors: 1, Skipped: 0

[ERROR] Failures:
[ERROR] ProductController_createProduct_36b748883e_Test.createProductWithEmptyValues Expected exception: java.lang.IllegalArgumentException
[ERROR] ProductController_createProduct_36b748883e_Test.createProductWithInvalidValues Expected exception: java.lang.IllegalArgumentException
[ERROR] ProductController_createProduct_36b748883e_Test.createProductWithNullValues Expected exception: java.lang.NullPointerException
[ERROR] ProductController_getProductById_d22f3ea272_Test.getProductByIdNullParameterScenario Expected exception: java.lang.NullPointerException
[ERROR] Product_getPrice_d2cb73a47d_Test.testNegativeValuePrice:109 expected:<0.0> but was:<-10.0>
[ERROR] Product_setId_04a8e16b7c_Test.testSetIdWithNullValue Expected exception: java.lang.NullPointerException

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

Successfully merging this pull request may close these issues.

1 participant