What is Nostr?
Steve Grunwell :verified: /
npub1jz8…3r9d
2024-10-17 01:13:43

Steve Grunwell :verified: on Nostr: I saw a demo today where, given a #PHP class and asked to write tests, GitHub ...

I saw a demo today where, given a #PHP class and asked to write tests, GitHub #CoPilot wrote a single unit test (with one assertion) to test a method that could return true or false, depending on the result of another method.

It stubbed the nested method to return the one value that could trigger a "true" return value. It did not test *any* other inputs (which would have produced false).

If you're only #testing the happy path, you're barely scratching the surface, no matter what "AI" thinks.
Author Public Key
npub1jz8kmwflls54ah96mxsg22322td4eta9j32h2a790t8dt2xymctstg3r9d