writing-tests

Automate E2E and unit test setup and execution with Playwright and Vitest.

1|Updated Apr 22, 2022
One-click install
npx skills add https://github.com/eventua11y/eventua11y.com --skill writing-tests-eventua11y
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-tests
Source: https://github.com/eventua11y/eventua11y.com/tree/main/.opencode/skills/writing-tests
Command: npx skills add https://github.com/eventua11y/eventua11y.com --skill writing-tests-eventua11y

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps streamline and optimize test practices for the Eventua11y project, enhancing code quality and maintainability by using Playwright for E2E tests and Vitest for unit tests.

Core Features & Use Cases

  • Playwright E2E Tests: Utilizes Playwright to write and execute comprehensive end-to-end tests.
  • Vitest Unit Tests: Implements efficient unit testing with Vitest for quick feedback on code changes.
  • Use Case: When developing new features in Eventua11y, use this Skill to create and run tests to ensure functionality works as expected.

Quick Start

Run the 'write tests' command to start writing E2E tests for the Eventua11y website using Playwright.

Frequently Asked Questions about writing-tests

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

FAQPage Schema
How do I set up Playwright and Vitest for automated testing?

Automated testing with Playwright and Vitest is configured by running the designated script command to generate and execute E2E and unit test frameworks for your web application.

What is the best way to write E2E tests for my web application?

Writing E2E tests is best handled by Playwright, which automates comprehensive browser interactions to validate functionality and performance across your web application end-to-end.

Can I use Vitest for quick unit testing feedback during development?

Vitest is used for efficient unit testing, providing quick feedback on code changes by validating individual components and logic within your web application.

Do I need prior knowledge of Playwright and Vitest to create test cases?

Yes, you need knowledge of Playwright and Vitest to create and execute test cases, as this Skill automates the setup and execution of tests but requires you to define the test logic.

When should I use E2E testing versus unit testing?

Use Vitest unit testing for quick feedback on individual code changes, and Playwright E2E testing to validate comprehensive functionality and performance across the entire web application workflow.

How do I start writing tests for my web application?

Start writing tests by running the 'write tests' command, which initiates the setup to create and execute E2E and unit test cases using Playwright and Vitest.