मुख्य सामग्री पर जाएँ
Skillpedia
टेस्टिंग12k · #11497

fprime-component-integration-test

यह क्या करती है

यह AI को ऐसे इंटीग्रेशन टेस्ट लिखने के चरण समझाती है जो ग्राउंड सिस्टम के ज़रिए कमांड भेजते हैं और इवेंट व टेलीमेट्री जाँचते हैं। यह F Prime कंपोनेंट का टेस्ट करने वाले इंजीनियरों के लिए है।

कब इस्तेमाल करें

  • ✓जब यूनिट टेस्ट पास हो चुके हों और F Prime कंपोनेंट का इंटीग्रेशन टेस्ट करना हो।
  • ✓जब आप ऐसे टेस्ट चाहते हों जो चल रही F Prime डिप्लॉयमेंट को कमांड भेजें।
  • ✓जब आपको लाइव सिस्टम में किसी कंपोनेंट के इवेंट और टेलीमेट्री जाँचने हों।

Skill का लिंक

https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-component-integration-test/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/nasa/fprime/blob/devel/.github/skills/fprime-component-integration-test/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“क्या आप इस F Prime कंपोनेंट के लिए pytest इंटीग्रेशन टेस्ट लिख सकते हैं जो कमांड भेजे और इवेंट जाँचे?”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

AI कंपोनेंट के फ़ोल्डर में टेस्ट फ़ाइल सेट करता है, ग्राउंड डेटा सिस्टम टेस्ट API से कमांड भेजता और इवेंट व टेलीमेट्री पढ़ता है, फिर टेस्ट चलाता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे 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 events
  • assert_event() / assert_telemetry() — verify component output
  • get_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)
अक्सर पूछे जाने वाले सवाल

क्या इन टेस्ट के लिए चल रहा सिस्टम चाहिए?

हाँ। टेस्ट चलाने से पहले डिप्लॉयमेंट ग्राउंड डेटा सिस्टम के ज़रिए चालू होनी चाहिए।

क्या ये टेस्ट पूरे सिस्टम के वर्कफ़्लो कवर करते हैं?

नहीं। ये एक कंपोनेंट को कवर करते हैं, और पूरे सिस्टम के टेस्ट अलग विषय हैं।

ये टेस्ट कहाँ रहते हैं?

ये कंपोनेंट के अपने test/int फ़ोल्डर में रहते हैं, ताकि उस कंपोनेंट वाली कोई भी डिप्लॉयमेंट इन्हें चला सके।

जानकारी

लेखक का मूल विवरण

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

लोकप्रियता

GitHub स्टार
12k
रैंकिंग में स्थान
#11497
लाइसेंस
Apache-2.0
अपडेट की गई
2/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

fprime-cmake-build-system

12k

यह आपके एजेंट को F Prime फ़्लाइट सॉफ़्टवेयर प्रोजेक्ट की CMake लेयर के ज़रिए मॉड्यूल, बिल्ड टार्गेट और प्लेटफ़ॉर्म सेटिंग जोड़ने में मदद करती है।

कोडिंगसामान्य कोडिंग

fprime-component-design-fpp

12k

यह आपके एजेंट को स्वीकृत F Prime कंपोनेंट की आवश्यकताओं को उसके पोर्ट, कमांड, इवेंट और टेलीमेट्री के FPP मॉडल में बदलने में मदद करती है।

कोडिंगAPI और सर्वर (backend)

fprime-component-development

12k

यह आपके एजेंट को F Prime कंपोनेंट को आवश्यकताओं से लेकर इंटीग्रेशन टेस्टिंग तक हर विकास चरण में आगे बढ़ाने में मदद करती है।

कोडिंगAPI और सर्वर (backend)

fprime-component-implementation

12k

यह आपके एजेंट को F Prime कंपोनेंट के जनरेट हुए हैंडलर फ़ंक्शन के पीछे का C++ कोड प्रोजेक्ट के नियमों के अनुसार लिखने में मदद करती है।

कोडिंगAPI और सर्वर (backend)

मिलती-जुलती skills