Inspiration

Every developer knows that unit tests are important for making sure your code runs smoothly and unexpected bugs don't appear without you noticing. However, many devs don't bother writing unit tests because they are tedious and time consuming to write, especially in a big project with time constraints. We wanted a way for devs to create unit tests quickly and accurately, even in big projects.

What it does

Smart Test lets you upload your code and automatically generates unit tests for it. After understanding how every one of the components interact.

How we built it

We used the chatGPT-4o API with a prompt engineered including every one of the files and their names to generate a unit test, sent back to the client and displayed using prism.

We designed a simple, minimalist UI in vanilla JS to provide a simple interface with the user. We used Flask as a simple backend.

What we learned

While we both had programming experience before, neither one of us have worked with Flask or done much frontend development. One of us had almost no experience with Python or JavaScript, so learning everything was challenging, but rewarding.

What's next for Smart Test

The next thing we want to add to Smart Test is additional options, for example refactoring code, and support for other languages. In the long term, we want to add Smart Test directly to IDEs as a plugin, to reduce the hassle of uploading code and pasting from the website.

Built With

Share this project:

Updates