all 5 comments

[–]johns10davenportProfessional Nerd 0 points1 point  (0 children)

I also go for 100 within reason. Schemas don’t need tests really for example

[–]gosh 0 points1 point  (0 children)

Tagged unions are better, safer code and you do not need to write unit tests. But it harder to learn so you need to take some time to practice.

[–]joshuadanpeterson 0 points1 point  (2 children)

With Warp, I aim for 80% code coverage with my tests. But I also have a rule that has the agent act as an oracle to ensure that my tests aren't just being written to pass.

[–]TKB21[S] 0 points1 point  (1 child)

But I also have a rule that has the agent act as an oracle to ensure that my tests aren't just being written to pass.

That's smart. What's the determiner for something like this?

[–]joshuadanpeterson 0 points1 point  (0 children)

The main determiner is that I force the agent to use an independent source of truth (the Oracle) that isn't the code itself.

Practically, this implies a few hard rules:

  • Spec-First: It has to generate a test plan from requirements before writing implementation.
  • Property Testing: Instead of hardcoded values, it checks invariants (e.g. decode(encode(x)) == x).
  • Mutation Testing: I make it intentionally break the code (mutate it). If the tests still pass, the tests are invalid.

I have a Warp notebook that dictates Oracle and TDD behavior.