midnight-test-runner

Run and debug Midnight contract tests using Vitest simulators.

8|2|Updated Jan 18, 2026
One-click install
npx skills add https://github.com/UvRoxx/midnight-agent-skills --skill midnight-test-runner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: midnight-test-runner
Source: https://github.com/UvRoxx/midnight-agent-skills/tree/main/skills/midnight-test-runner
Command: npx skills add https://github.com/UvRoxx/midnight-agent-skills --skill midnight-test-runner

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Run and debug Midnight contract tests using Vitest simulators to validate contract behavior.

Core Features & Use Cases

  • Run full test suites with Vitest for Midnight contracts.
  • Debug failing tests with simulated environments and logs.
  • Create and modify tests efficiently within contract directories.

Quick Start

Run the test runner in your contract directory to execute all tests and see results.

Frequently Asked Questions about midnight-test-runner

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

FAQPage Schema
How do I run Midnight contract tests using a Vitest simulator?

To run Midnight contract tests, execute Vitest within your contract directory after spinning up local simulators. This deterministic workflow validates contract behavior by compiling if needed and reporting results directly.

What is the best way to debug failing Midnight contract tests?

Debugging failing Midnight contract tests involves using simulated environments and logs to identify failures. The runner provides guided debugging tips after executing Vitest to help pinpoint and resolve contract behavior issues.

Do I need to compile Midnight contracts before executing Vitest?

Compiling Midnight contracts before executing Vitest is handled automatically by the runner if needed. The deterministic workflow checks compilation status, spins up simulators, and then executes the test suite.

Can I generate test coverage reports for Midnight contracts?

Generating test coverage reports for Midnight contracts is supported during test suite execution. The runner executes Vitest with simulators to validate contract behavior and includes coverage reporting within the workflow.

Why are my Midnight simulator tests not working in Vitest?

Midnight simulator tests may not work if the deterministic workflow is interrupted, such as failing to compile contracts or spin up simulators properly. The runner reports these failures with guided debugging tips to resolve the issue.