testing

Run and filter Golem workspace tests with the test-r framework.

1.5k|207|Updated Nov 24, 2023
One-click install
npx skills add https://github.com/golemcloud/golem --skill testing-golemcloud
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: testing
Source: https://github.com/golemcloud/golem/tree/main/.agents/skills/testing
Command: npx skills add https://github.com/golemcloud/golem --skill testing-golemcloud

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps developers efficiently run, filter, and debug tests within the Golem development environment, reducing time spent on test execution and failure analysis.

Core Features & Use Cases

  • Targeted Test Execution: Run specific test suites (unit, worker executor, integration, CLI) instead of all tests.
  • Precise Test Filtering: Use substring matching to run individual tests or groups of tests.
  • Debugging Assistance: Enable --nocapture for detailed test output and guide on saving logs for slow tests.
  • Use Case: When a specific integration test fails, use this Skill to run only that test with detailed logging to quickly identify the root cause.

Quick Start

Run the Golem integration tests for the worker executor functionality.

Frequently Asked Questions about testing

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

FAQPage Schema
How do I run specific Rust integration tests in the Golem workspace?

You can run specific Rust integration tests in the Golem workspace by using the test-r framework to execute targeted test suites, such as worker executor or CLI tests, instead of running the entire suite.

How do I debug failing Golem tests with detailed output?

You can debug failing Golem tests with detailed output by enabling the `--nocapture` flag during test execution. This displays detailed logging output to help quickly identify the root cause of failures.

Can I filter Rust tests by name in the Golem development environment?

Yes, you can filter Rust tests by name in the Golem development environment. The test-r framework supports substring matching, allowing you to run individual tests or specific groups of tests efficiently.

What is the best way to analyze slow Rust test failures in Golem?

The best way to analyze slow Rust test failures in Golem is to run the specific failing test with the `--nocapture` flag enabled. This provides detailed execution output and guides you on saving logs for debugging.

Does the Golem test-r framework support running only unit tests?

Yes, the Golem test-r framework supports running only unit tests. It facilitates targeted test execution, allowing you to specifically select and run unit test suites independently from integration tests.