fprime-component-integration-test
O que ela faz
Ele orienta a IA na escrita de testes de integração que enviam comandos e conferem eventos e telemetria pelo sistema de solo. É para engenheiros que testam componentes F Prime.
Quando usar
- ✓Quando os testes unitários passam e um componente F Prime precisa de testes de integração.
- ✓Quando você quer testes que enviem comandos para uma implantação F Prime em execução.
- ✓Quando precisa verificar os eventos e a telemetria de um componente em um sistema ao vivo.
Link da skill
https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-component-integration-test/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Você pode escrever testes de integração pytest que enviem o comando e confiram o evento deste componente F Prime?”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA cria um arquivo de teste na pasta do componente, usa a API de teste do sistema de solo para enviar comandos e ler eventos e telemetria e depois roda os testes.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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)
Perguntas frequentes
Os testes precisam de um sistema em execução?
Sim. A implantação precisa estar rodando pelo sistema de dados de solo antes de os testes serem executados.
Esses testes cobrem fluxos de trabalho do sistema inteiro?
Não. Cobrem um componente, e testes de sistema inteiro são um tema separado.
Onde ficam os testes?
Ficam na pasta test/int do próprio componente, para que qualquer implantação que o inclua possa executá-los.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 12 mil
- Posição no ranking
- #11497
- Licença
- Apache-2.0
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
fprime-cmake-build-system
12 milAjuda seu agente a adicionar módulos, alvos de build e configurações de plataforma a um projeto de software de voo F Prime pela sua camada CMake.
fprime-component-design-fpp
12 milAjuda seu agente a transformar requisitos aprovados de um componente F Prime em um modelo FPP de suas portas, comandos, eventos e telemetria.
fprime-component-development
12 milAjuda seu agente a conduzir um componente F Prime por cada fase de desenvolvimento, desde os requisitos até os testes de integração.
fprime-component-implementation
12 milAjuda seu agente a escrever o código C++ por trás das funções de tratamento geradas de um componente F Prime, seguindo as regras do projeto.
Skills parecidas
test-driven-development
311 milEnsina seu agente a escrever primeiro um teste que falha, ver a falha e depois escrever o menor código que passa, antes de criar qualquer funcionalidade ou correção.
verification-before-completion
311 milEnsina seu agente a rodar verificações reais e ler a saída antes de afirmar que uma tarefa, correção ou build está concluído ou passando.
migrate-to-shoehorn
310 milSubstitui conversões de tipo arriscadas nos seus arquivos de teste pela biblioteca shoehorn, para que os testes usem dados parciais e ainda passem na checagem de tipos.