I

I made a CLI that will use GPT4 to generate unit tests

Hacker News

I made a CLI that will use GPT4 to generate unit tests

I always hated tests, so I've gone and just automated the task away. You'll get out complete tests that are known to pass from this tool. If you just want to try it out, here's the command to run for the entire project npx deepunit -- --a To run for just a specific file(s) npx deepunit -- --f path/to/file.ts For complete documentation: https://www.npmjs.com/package/deepunit Behinds the scenes there's a whole lot going on to get code that runs and compiles. I'm sure you've already used ChatGPT to write a simple function and found that most of the time there are small things to fix up before it's ready to run. A ton of time was spent handling each of those edge cases to ensure that the output is a test that runs and passes.

Share card

Actual performance

4points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Product HuntOn track for Day 1 leaderboard · Strong signals: chatgpt, code · Missing: mac, agents, macos
87%87% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
72%72% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: way · Missing: mobile apps, ios, personal
40%40% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
Hacker NewsMay not resonate with HN audience · Strong signals: io · Missing: https docs, excited, just released
40%40% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
38%38% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
14%14% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Strong signals: chat · Missing: web3, crypto, cryptocurrency
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Correct prediction on native model

Similar products

Dy
Dynamically generate self-signed certs for Go unit tests41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Dynamically generate self-signed certs for Go unit tests

Hacker News1
St
Standardising 'Unit Tests' for Prompts33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Standardising 'Unit Tests' for Prompts

Hacker News3
Wr
Writing unit tests in Golang33%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Writing unit tests in Golang

Hacker News1
CodeBeaver
CodeBeaver65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Unit tests on autopilot

Product Hunt+109
Ge
Generate PHPUnit tests from annotations45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Generate PHPUnit tests from annotations

Hacker News1
Ge
Generate OpenAPI from Your Tests46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Generate OpenAPI from Your Tests

Hacker News16
Wr
Writing modern C unit tests with Criterion46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Writing modern C unit tests with Criterion

Hacker News34
Op
Opunit Simple unit tests for servers and containers43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Opunit Simple unit tests for servers and containers

Hacker News15
Un
Unit Tests for LangChain aps in 3 lines of code41%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Unit Tests for LangChain aps in 3 lines of code

Hacker News1
Wr
Writing Maintainable Unit Tests Course39%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Writing Maintainable Unit Tests Course

Hacker News2