Setup & Installation
npx skills add https://github.com/LambdaTest/agent-skills --skill testunit-skill
https://github.com/LambdaTest/agent-skills/tree/main/testunit-skill
View on GitHubWhat This Skill Does
Generates Test::Unit test files for Ruby projects. It scaffolds xUnit-style test case classes with assert methods, setup/teardown fixtures, and proper naming conventions.
Writing Test::Unit boilerplate by hand is repetitive, and it's easy to forget assertion variants or fixture lifecycle methods that the framework provides.
When to use it
- Writing Test::Unit cases for a Ruby class from scratch
- Adding assertion-based tests to a legacy Ruby codebase
- Scaffolding setup and teardown fixtures for database test cases
- Converting informal test scripts into structured Test::Unit classes
- Generating test files that follow the test_ method naming convention