Live data from Hacker News

Show HN: Wasted hours on Unit tests, so I built VS Code ext for AI tests

marketplace.visualstudio.com

11–16 of 16 posts

Re: Show HN: Wasted hours on Unit tests, so I built VS Code ext for AI tests

#11
post #2

Anyone made the opposite product? Human written tests, that an AI tries to make green?

Given the "ai Mario just pauses the game and calls it a win"

I'd expect that the ai written code doesn't do the right thing outside of the given test cases

Re: Show HN: Wasted hours on Unit tests, so I built VS Code ext for AI tests

#12
I don't really understand what the test cases will do? Is the code expected to already correct, and the tests are documentation?

If I imagine a workflow of

1. Updating some code (with a regression) 2. Running the ai to generate tests 3. The tests pass

How do I know that the ai didn't assume the regression is expected? Do I read the explanation of the test cases?

Re: Show HN: Wasted hours on Unit tests, so I built VS Code ext for AI tests

#13
post #12

I don't really understand what the test cases will do? Is the code expected to already correct, and the tests are documentation? If I imagine a workflow of 1. Updating some code (with a regression) 2. Running the ai to generate tests 3. The tests pass How do I know that the ai didn't assume the regression is expected? Do I read the explanation of the test cases?

There are positive, negative and edge cases.

They are generated by AI, so unit tests will be implemented by case definitions.

Re: Show HN: Wasted hours on Unit tests, so I built VS Code ext for AI tests

#16

IMHO, Testing is one thing that needs to be inspected when it comes to AI code generation

It is, I agree.

You have full control over generated tests. Also, I put focus on putting as much control as possible, so you can set different inputs to reach higher quality of generated tests.

At the end, you add or append file with generated tests, so you have full control over them.

Post reply on HN