fprime-component-integration-test
What it does
It guides the AI through writing integration tests that send commands and check events and telemetry through the ground system. It is for engineers testing F Prime components.
When to use it
- ✓When unit tests pass and an F Prime component needs integration testing.
- ✓When you want tests that send commands to a running F Prime deployment.
- ✓When you need to check a component's events and telemetry in a live system.
Skill link
https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-component-integration-test/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Can you write pytest integration tests that send the command and check the event for this F Prime component?”
5 new skills a week. 1 minute to read.
How it works
The AI sets up a test file in the component folder, uses the ground system test API to send commands and read events and telemetry, then runs the tests.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Skill: F Prime Reusable Component Integration Testing
Reusable integration tests live in the component's own
test/int/ folder and verify that the component works correctly
in a running deployment. They exercise the component through the
Ground Data System (GDS) — sending commands, checking events, and
reading telemetry over the actual communication stack.
For the full implementation guide, see Reusable Integration Tests. For the complete API reference (send commands, assert events/telemetry, predicates, histories), see the GDS Integration Test API Guide.
Note: This skill covers component-level reusable integration tests. System-wide integration tests (testing cross-component workflows across an entire deployment) are a separate concern.
Prerequisites
The component must be added to a topology before integration tests
can run. If it has not been integrated yet, see
docs/user-manual/overview/development-practice.md § "Assemble
Topology".
The deployment must be running (via fprime-gds) for integration
tests to execute.
Process
Step 1 — Set Up Test Directory
Create test/int/test_<ComponentName>.py in the component folder.
See
Reusable Integration Tests
for the expected file layout and int_config.json configuration.
Step 2 — Write Reusable Tests
Tests use pytest with the fprime_test_api fixture. Use
fprime_test_api.get_mnemonic() to resolve instance names from a
configuration file, making tests portable across deployments. See the
GDS Test API Guide
for the full API (sending commands, asserting events/telemetry,
predicates, sequences).
Key patterns:
send_and_assert_command()— send + verify command success eventsassert_event()/assert_telemetry()— verify component outputget_mnemonic()— resolve qualified names for portability- Map each test to a requirement in the docstring (
Covers: REQ-*)
Step 3 — Draft Requirements Coverage
Draft which requirements should be covered by integration tests. Aim for reasonable coverage of the component's requirements, especially those that exercise inter-component behavior.
Step 4 — Run Integration Tests
# Start the deployment + GDS (in separate terminal)
fprime-gds --dictionary <path-to-dictionary>
# Run the component's reusable tests against a deployment
pytest <Component>/test/int/ \
--dictionary <path-to-dictionary> \
--deployment-config <path>/int_config.json
See Reusable Integration Tests § Running the tests
for CI integration using fprime-actions/run-integration-tests.
Anti-Patterns
- Hardcoding instance mnemonics — use
get_mnemonic()for portability - Writing tests that depend on test execution order
- Ignoring
max_delay/timeout(tests will hang or be flaky) - Not mapping tests to requirements
- Testing unit-level behavior in integration tests (use unit tests for that)
FAQ
Do the tests need a running system?
Yes. The deployment must be running through the ground data system before the tests execute.
Do these tests cover whole-system workflows?
No. They cover one component, and system-wide tests are a separate topic.
Where do the tests live?
They sit in the component's own test/int folder, so any deployment that includes the component can run them.
Details
Original description by the author
Integration testing phase of F Prime component development. Guides the agent through writing reusable pytest-based integration tests in the component's test/int/ folder using the GDS Integration Test API. These tests ship with the component and can be run against any deployment that includes it. Trigger when unit tests pass and the component is ready for integration testing. Keywords: F Prime, integration test, pytest, GDS, fprime_test_api, reusable test, component test.
repo: nasa/fprime
Popularity
- GitHub stars
- 12k
- Ranking position
- #11497
- License
- Apache-2.0
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
fprime-cmake-build-system
12kHelps your agent add modules, build targets and platform settings to an F Prime flight software project through its CMake layer.
fprime-component-design-fpp
12kHelps your agent turn approved F Prime component requirements into an FPP model of its ports, commands, events and telemetry.
fprime-component-development
12kHelps your agent guide an F Prime component through each development phase, from requirements to integration testing.
fprime-component-implementation
12kHelps your agent write the C++ code behind an F Prime component's generated handler functions, following the project's rules.
Similar skills
test-driven-development
311kTeaches your agent to write a failing test first, watch it fail, then write the smallest code that passes, before building any feature or fix.
verification-before-completion
311kTeaches your agent to run real checks and read their output before claiming that a task, fix, or build is complete or passing.
migrate-to-shoehorn
310kReplaces risky type casts in your test files with the shoehorn library, so tests can use partial data and still pass type checks.