write-tests

Write Japa and Playwright tests across browser, functional, and unit layers.

Updated Apr 22, 2026
One-click install
npx skills add https://github.com/mkrlabs/specflow --skill write-tests-mkrlabs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: write-tests
Source: https://github.com/mkrlabs/specflow/tree/main/examples/.claude/skills/write-tests
Command: npx skills add https://github.com/mkrlabs/specflow --skill write-tests-mkrlabs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides expert guidelines for writing tests with Japa and Playwright across browser, functional, and unit layers, helping teams avoid common pitfalls and save time.

Core Features & Use Cases

  • Comprehensive testing patterns for browser UI with Playwright, functional API tests, and unit tests.
  • Pitfall guides and patterns to reduce debugging loops in AdonisJS + Japa environments.
  • Real-world examples and project-specific gotchas to accelerate on-boarding and consistency.

Quick Start

Read this guide before writing tests to adopt the recommended patterns and avoid common pitfalls.

Frequently Asked Questions about write-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write tests with Japa and Playwright in an AdonisJS project?

You write tests with Japa and Playwright by following structured patterns across browser, functional, and unit layers. Expert guidelines help you set up a consistent test suite, applying specific conventions for UI, API, and logic testing in AdonisJS environments.

What are common pitfalls when setting up Playwright browser tests with Japa?

Common pitfalls when setting up Playwright browser tests with Japa include inconsistent front-end and API testing conventions. Using documented examples and expert patterns reduces debugging loops and helps you avoid project-specific gotchas in AdonisJS environments.

Can I use this testing approach for both API and unit testing in AdonisJS?

Yes, you can use this testing approach for both API and unit testing in AdonisJS. The guidelines cover comprehensive testing patterns for functional API tests and unit tests, ensuring reliable and maintainable test suites across all layers.

What's the best way to structure a Japa test suite for UI and API testing?

The best way to structure a Japa test suite for UI and API testing is to adopt consistent front-end and API testing conventions. Following expert guidelines and real-world examples ensures your test setup drives reliable, maintainable test suites across browser and functional layers.

Do I need a structured test setup before writing Japa and Playwright tests?

Yes, you need a structured test setup before writing Japa and Playwright tests. The guidelines require consistent front-end and API testing conventions along with documented examples to drive reliable, maintainable test suites across browser, functional, and unit layers.

When should I not use Japa for testing in AdonisJS?

You should reconsider using Japa for testing in AdonisJS if your project lacks a structured test setup or consistent front-end and API testing conventions. Reliable, maintainable test suites require documented examples and clear patterns to avoid common pitfalls and debugging loops.