mx-space/core · Archived

run-test

Run tests. Supports running all tests, single file, or pattern-matched tests.

First seen Mar 29, 2026

Installation

$ npx skills add mx-space/core --skill run-test

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from mx-space/core · top by installs.

npx skills add mx-space/core

Browse all from mx-space/core

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Also listed on

Alternate registries and mirrors of this skill.

Repository health

Stars 554
License LICENSE
Default branch master
Open issues 9
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Allowed toolsBash(pnpm test*), Bash(cd *), Read, Glob

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,223 B
  • docs SUMMARY.md 93 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 3 installs

SKILL.md

Run Tests

Run project tests. Arguments: $ARGUMENTS

Test Commands

Run All Tests

pnpm test

Run Single Test File

# Using relative path (from apps/core directory)
pnpm test -- test/src/modules/post/post.controller.e2e-spec.ts

# Using filename pattern
pnpm test -- --testNamePattern="PostController"

Watch Mode

pnpm -C apps/core run test:watch

Run Specific Test Case

# Match test name
pnpm test -- --testNamePattern="should create post"

Test Directory Structure

apps/core/test/
├── src/
│   ├── modules/           # Module tests
│   │   ├── post/
│   │   │   ├── post.controller.e2e-spec.ts
│   │   │   └── post.e2e-mock.db.ts
│   │   ├── user/
│   │   │   ├── user.controller.spec.ts
│   │   │   ├── user.controller.e2e-spec.ts
│   │   │   └── user.service.spec.ts
│   │   └── ...
│   ├── utils/             # Utility tests
│   ├── processors/        # Processor tests
│   └── transformers/      # Transformer tests
├── helper/                # Test helpers
├── mock/                  # Mock implementations
└── setup-global.ts        # Global setup

Test Types

Suffix Type Description
.spec.ts Unit test Test single function or class
.e2e-spec.ts E2E test Test complete HTTP request flow

Execution Steps

  1. Analyze arguments to determine which tests to run
  2. If file path specified, verify file exists first
  3. Execute appropriate test command
  4. Report test results

Common Issues

Test Timeout

Increase timeout:

pnpm test -- --testTimeout=30000

Memory Issues

Tests use in-memory database. If memory issues occur:

NODE_OPTIONS="--max-old-space-size=4096" pnpm test

Run Only Failed Tests

pnpm test -- --reporter=verbose