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

Generate unit tests for utils functions with AI #239

Open
albertcastaned opened this issue Jun 19, 2023 · 0 comments
Open

Generate unit tests for utils functions with AI #239

albertcastaned opened this issue Jun 19, 2023 · 0 comments
Labels
idea Optional enhancements that could improve the user experience or development workflow tests

Comments

@albertcastaned
Copy link
Contributor

Right now there is a lot of code coverage missing that could be tested, specifically for util functions. To improve our code coverage a suggestion would be using ChatGPT or a library that uses similar Generative AI to generate these tests and verify these are correct and pass with current code.

For this ticket we could start by generating unit tests for all the functions that are in app/utils.

Here is an example of a conversation with ChatGPT
https://chat.openai.com/share/a72ed419-d449-4348-a018-96ab6813f8fc

Note that sometimes generated tests could be wrong, or code may need updating.

@albertcastaned albertcastaned added the idea Optional enhancements that could improve the user experience or development workflow label Jun 19, 2023
@albertcastaned albertcastaned changed the title Generate unit tests with AI Generate unit tests for utils functions with AI Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea Optional enhancements that could improve the user experience or development workflow tests
Projects
None yet
Development

No branches or pull requests

1 participant