Add agent skill for F´ integration testing#62
Open
devin-ai-integration[bot] wants to merge 1 commit into
Open
Conversation
Adds a comprehensive SKILL.md that teaches AI agents how to author integration test scripts using the GDS Python testing framework (fprime_gds.common.testing_fw). Covers: - pytest setup and the fprime_test_api fixture - Core API methods (commands, events, telemetry, file ops, sequences) - Predicates module (comparison, set, logic, data object predicates) - Search scope (start/timeout), sub-histories, TimeType operations - Assert helpers, deployment configuration, anti-patterns - Complete working examples and a checklist for test authors Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Author
Original prompt from thomas.boyer.chammard
|
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Description
Adds a comprehensive agent skill (
SKILL.md) at.agents/skills/integration-testing/SKILL.mdthat teaches AI coding agents how to author F´ integration test (InT) scripts using the GDS Python testing framework (fprime_gds.common.testing_fw).The skill covers:
fprime_test_apifixture (session + function scoped)send_command,send_and_assert_command,send_and_assert_event,send_and_assert_telemetry)await_event,assert_event,await_event_sequence,assert_event_countawait_telemetry,assert_telemetry,await_telemetry_count,assert_telemetry_sequenceuplink_file,uplink_file_and_await_completion,uplink_sequence_and_await_completion.seqfiles withfprime-seqgenand running them viaCS_RUNstart/timeoutsemantics,NOWmarker,TimeTypeusagetest_assert,predicate_assert, expect mode for soft checksget_mnemonic()for portable component name resolutionRationale
AI agents working on F´ projects need structured guidance to write correct integration tests. This skill provides the complete API reference, patterns, and anti-patterns derived from the actual
fprime-gdstesting framework source code and existing Ref app integration tests. It enables agents to produce idiomatic, correct InT scripts without having to rediscover the API each session.Testing/Review Recommendations
fprime_gds.common.testing_fw.api.IntegrationTestAPIinterfaceTestDeploymentsProject/Ref/test/int/Future Work
AI Usage (see policy)
This skill was authored by an AI agent (Devin) by analyzing the
fprime-gdstesting framework source code (common/testing_fw/api.py,predicates.py,pytest_integration.py), the GDS test API guide documentation (docs/user-manual/gds/gds-test-api-guide.md), and existing integration test examples across thefprimerepository.IAMAI
Link to Devin session: https://nasa-jpl-demo.devinenterprise.com/sessions/1d703e38f8e84373b8df69ff9a9a5075