Pythagora: Auto-Generate Node.js Tests Using LLMs, No Coding Required (github.com)

22 points by OptiCore 11 hours ago

12 comments:

by diggan 8 hours ago

Doesn't that workflow sound backwards? I'd much rather write the tests themselves (so I can be sure it's working as expected in my mind + get a somewhat reasonable interface for the functions), then let a LLM write the implementation, than the other way around.

I guess the end-goal is the same as "Acceptance Testing", have the LLMs write both unit tests and implementation. Just missing the piece of letting the LLMs debug the inevitable crashes that will happen in production, and be able to hotfix it, so the website visitors (LLM crawlers) don't complain.

by golergka 3 hours ago

Once you design the API and write a first couple of unit tests, LLMs are pretty good at writing up the rest, including a lot of corner cases.

by guzik 11 hours ago

Weird submission. When I open the link I read that the tool is deprecated.

by nikolay 4 hours ago

Yup! I saw the same thing. But the VS Code says the opposite.

by senko 6 hours ago

Pythagora pivoted to full app development using AI. There's an open source (FSL-MIT) licensed core[0] and a VSCode extension[0]. There's an overview video of just-released v1 (early access), more info at https://www.pythagora.ai/

[0] https://github.com/pythagora-io/gpt-pilot

[1] https://marketplace.visualstudio.com/items?itemName=Pythagor...

by faangguyindia 5 hours ago

Using AI coding via zed editor.

Best UX so far.

Wish it had FIM completion via local LLM or Gemini Flash like models and better Git GUI, it would have replaced vscode for me already then.

by nikolay 4 hours ago

I agree. Zed is the future.

by danjl 4 hours ago

I wish it could write integration tests. That requires an understanding of the testing scaffold and the fake data it produces. LLMs aren't ready for that yet, but someday it will be magical.

by dboreham 4 hours ago

Since in my experience most humans can't write correct tests, this is impressive indeed.

by nikolay 4 hours ago

I am still waiting for my invite...

by jaggs 11 hours ago

Yeah they've pivoted to a Devin and Replit competitor it seems.

by senorrib 7 hours ago

Smart move.

Data from: Hacker News, provided by Hacker News (unofficial) API