GENAIWIKI

Unit Test Generation from Specification

Automatically generates unit tests based on provided specifications and code.

unit testingsoftware developmenttest automation

Prompt text

Copy into your favorite runtime.

Create unit tests for the following function specifications: calculateDiscount(price, discountRate) which returns the discounted price.