Back to All Tags
Tag • 5 Prompts

#Unit Tests

Explore all AI prompts tagged with #Unit Tests.

Prompts tagged with #Unit Tests

GPT-4

Write a pandas pipeline that ingests this CSV description, handles missing values with per-column strategies you justify, normalises dtypes, and outputs a validated DataFrame. Use method chaining, type hints, and add three assertion checks that would catch silent data corruption. [DESCRIBE COLUMNS]

▸ ready to run
GPT-4

Write a pandas pipeline that ingests this CSV description, handles missing values with per-column strategies you justify, normalises dtypes, and outputs a validated DataFrame. Use method chaining, type hints, and add three assertion checks that would catch silent data corruption. [DESCRIBE COLUMNS]

Pandas Cleanup Pipeline Builder

A data-cleaning prompt that demands per-column justification and built-in assertions — the difference between a script and a pipeline you can trust next month. Method chaining keeps the result readable in review.

703120
Claude

This function is too long and untested. Produce: (1) a characterisation test suite that pins current behaviour including its bugs, (2) a seam-by-seam extraction plan, (3) the refactored version. Behaviour changes are forbidden — flag suspected bugs in comments instead of fixing them. [PASTE FUNCTION]

▸ ready to run
Claude

This function is too long and untested. Produce: (1) a characterisation test suite that pins current behaviour including its bugs, (2) a seam-by-seam extraction plan, (3) the refactored version. Behaviour changes are forbidden — flag suspected bugs in comments instead of fixing them. [PASTE FUNCTION]

Legacy Function Strangler

A refactoring prompt that puts characterisation tests before any code movement and outlaws behaviour changes — suspected bugs get flagged, not silently fixed. The output is a safe, reviewable migration rather than a rewrite gamble.

643105
GPT-4

For this function, identify the algebraic properties it should satisfy (idempotence, inverse pairs, invariants, ordering). Write property-based tests for each using the idiomatic library for the language. Include two deliberately nasty generators: adversarial strings and boundary numerics. [PASTE FUNCTION]

▸ ready to run
GPT-4

For this function, identify the algebraic properties it should satisfy (idempotence, inverse pairs, invariants, ordering). Write property-based tests for each using the idiomatic library for the language. Include two deliberately nasty generators: adversarial strings and boundary numerics. [PASTE FUNCTION]

Property-Based Test Generator

Moves testing from example-listing to property thinking: the prompt asks which algebraic laws the code must obey, then encodes them with hostile generators. Finds the edge cases table-driven tests always miss.

47380
Claude

Act as an expert software engineer in test with strong experience in `programming language` who is teaching a junior developer how to write tests. I will pass you code and you have to analyze it and reply me the test cases and the tests code.

▸ ready to run
Claude

Act as an expert software engineer in test with strong experience in `programming language` who is teaching a junior developer how to write tests. I will pass you code and you have to analyze it and reply me the test cases and the tests code.

Unit Test Assistant for Untested Functions

Generates unit tests for a function you paste in, covering the normal path plus boundary conditions. Pair it with your existing test framework conventions so output drops straight into the suite. A quick way to add a safety net before refactoring legacy code.

39.1K
GPT-4

I want you to act as a software quality assurance tester for a new software application. Your job is to test the functionality and performance of the software to ensure it meets the required standards. You will need to write detailed reports on any issues or bugs you encounter, and provide recommendations for improvement. Do not include any personal opinions or subjective evaluations in your reports. Your first task is to test the login functionality of the software.

▸ ready to run
GPT-4

I want you to act as a software quality assurance tester for a new software application. Your job is to test the functionality and performance of the software to ensure it meets the required standards. You will need to write detailed reports on any issues or bugs you encounter, and provide recommendations for improvement. Do not include any personal opinions or subjective evaluations in your reports. Your first task is to test the login functionality of the software.

QA Tester for Manual Test Plans and Bug Reports

Turns the model into a QA engineer that writes test cases and reproducible bug reports for a described feature. Useful for building a regression checklist, or for turning a vague complaint into a report a developer can actually act on.

34.2K