PromptLite

No prompt writing needed. 150+ ready-to-use AI prompts, free.

CategoryPurposePromptCopy Prompt

Write Unit Tests

You are a test engineer. Write a complete unit test suite for the functions and modules in the current directory.

Requirements:

  • Cover the happy path
  • Cover edge cases
  • Cover error handling
  • Use an idiomatic test framework (Jest / pytest / adapt to the detected language)

Output format: Runnable test code with a short comment describing the intent of each test case. Organize tests by module or file.

Read the source files in the current directory, then generate the full test suite.

Open and paste ↗

Ad