sw-integration-test
Skill4 starsChanged 15 days agoMITView on GitHub
Integrate the software step by step and test it against the software architecture (Automotive SPICE SWE.5): integration strategy with its steps and regression rules, integration test cases derived from interfaces, components and views, test code and doubles, a build record per step, test runs on those builds, and the traceability between them. Use when components are to be integrated or integrated again after a change, or when the trace check reports COV-13, COV-17, COV-18, COV-35, COV-36, COV-37, COV-38 or no approved software-integration plan (COV-27).
In this repository38 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- aspice-startSkill
- baselineSkill
- change-requestSkill
- component-qualificationSkill
- cybersecurity-conceptSkill
- cybersecurity-planSkill
- documentsSkill
- haraSkill
- import-inputsSkill
- mock-assessmentSkill
- next-stepSkill
- problem-resolutionSkill
- process-gateSkill
- project-planSkill
- project-statusSkill
- quality-assuranceSkill
- releaseSkill
- reviewSkill
- risk-managementSkill
- safety-analysisSkill
- safety-conceptSkill
- safety-planSkill
- supplier-monitoringSkill
- sw-architectureSkill
- sw-detailed-designSkill
- sw-qualification-testSkill
- sw-requirementsSkill
- sw-unit-implementSkill
- sw-unit-verifySkill
- sys-architectureSkill
- sys-integration-testSkill
- sys-qualification-testSkill
- sys-requirementsSkill
- taraSkill
- trace-checkSkill
- vulnerability-managementSkill
- work-breakdownSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 4 are distinctive, and 9 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
9
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
Run python tools/traceability.py status and python tools/traceability.py check --all (every command takes --project <dir>.
- Very specific: line 36
Test cases need an approved architecture: list --type software-interface --status approved, and the same for software-component.
- Very specific: line 42
If the check reports COV-30, SUSPECT or CONSISTENCY on a unit that a step integrates, say so first: the code is not verified as it is, and …
- Very specific: line 51
Search plans/ for kind: software-integration.
- Very specific: line 53
If there is none, read references/strategy-template.md, ask the user the decisions listed there, and draft the plan.
- Very specific: line 69
Read references/deriving-test-cases.md.
- Very specific: line 80
If the project has no integration runner, read "A project without a runner" in references/building-and-running.md and ask before copying …
- Very specific: line 88
Follow the sequence in references/building-and-running.md.
- Very specific: line 149
Do not set status to anything but draft, and do not write a review record.
- Distinctive: line 150
Do not type or edit a build record, a run record, a manifest or a result file.
- Distinctive: line 151
Do not take an expected result from the code, and do not change a case to match it.
- Distinctive: line 152
Do not replace an integrated component by a double, or leave a case out, to get a step through.
- Distinctive: line 154
Do not change the code under test, and do not copy or adapt a runner without asking.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Software integration and integration test (SWE.5)
Toolkit root:
${CLAUDE_PLUGIN_ROOT}- where this shows a placeholder instead of a folder, it is the repository you are in. Thetools/,schema/,aspice/,iso-26262/,iso-sae-21434/,examples/and.claude/docs/named here and in the references lie in the toolkit root; run its tools from the project folder aspython "<toolkit root>/tools/<script>.py".
Puts the software together in the order the strategy gives, step by step, and shows at
each step that the parts work together as the architecture says. The result is a plan
with its integration_steps and software-integration-test items in state draft,
ready for /review; test code and doubles; a final build-record per step and final
test-run records on those builds.
| Base practice | What this skill does | Evidence it leaves |
| SWE.5.BP1 Develop software integration strategy | writes the strategy with the user: the steps, what each adds, what stands in for the rest | plan of kind software-integration with integration_steps |
| SWE.5.BP2 Develop software integration test strategy including regression test strategy | in the same plan: what is tested per step, by which method, and what is repeated after a change | sections Approach and Criteria |
| SWE.5.BP3 Develop specification for software integration test | derives test cases from interfaces, component behaviour and views, each assigned to a step | software-integration-test items |
| SWE.5.BP4 Integrate software units and software items | builds each step from the code the units list and the components delivered as received | build-record per step |
| SWE.5.BP5 Select test cases | chooses the cases of a run by the strategy's rules, and says how | selection and not-run reasons in the run |
| SWE.5.BP6 Perform software integration test | runs the cases on the build of their step | test-run of level software-integration naming the build |
| SWE.5.BP7 Establish bidirectional traceability | verifies links, step, and run records keyed by test case and build | links; matrix and show output |
| SWE.5.BP8 Ensure consistency | self-checks against the checklist; the evidence comes from /review | proposed findings; review record written by /review |
| SWE.5.BP9 Summarize and communicate results | summarizes from tool output; /baseline records who was told | summary; communication-record |
Before you start
- No
project.yaml: stop. "This project has no scope yet. Run/aspice-startfirst." SWE.5not inscope.processes: stop. "SWE.5 is out of scope for this project."- Run
python tools/traceability.py statusandpython tools/traceability.py check --all(every command takes--project <dir>; runners are called by their path inside the project). - Test cases need an approved architecture:
list --type software-interface --status approved, and the same forsoftware-component. Name and leave out what is in draft or in review: its cases could not be approved (UPSTREAM). - Builds need code. A developed component whose units have no code yet cannot be
built;
COV-36is then a warning ending in "(pending: no unit of the step has code yet)". Write strategy and test cases now; building and running wait. - If the check reports
COV-30,SUSPECTorCONSISTENCYon a unit that a step integrates, say so first: the code is not verified as it is, and an integration on top of it inherits that. COV-27for kindsoftware-integration: do step 1 first. No build and no run is recorded before the strategy is approved;record.py buildrefuses.
Steps
1. Strategy (BP1, BP2)
- Search
plans/forkind: software-integration. An approved strategy rules every step below; where the project cannot follow it, say so. - If there is none, read
references/strategy-template.md, ask the user the decisions listed there, and draft the plan. The order of the steps, the components left to others, the environments and the regression rules are the user's decisions. checkreportsCOV-35for a component that no step integrates and that is not a double of the last step, for one integrated twice, and for a double named after its component was integrated.
2. Decide what to work on
- With arguments: the named steps or interfaces. Without: every finding of
COV-13,COV-17,COV-18,COV-35toCOV-38and everySUSPECTon an integration test. python tools/traceability.py matrix, tableverifies: software-integration-test -> .... After a change,impact <ID>of the changed item and "Regression" inreferences/building-and-running.md.- Tell the user the list and ask whether it is the scope of this session.
3. Derive the test cases (BP3)
- Read
references/deriving-test-cases.md. Work from the items, never from the code:elementsandoperationsof each interface with their ranges,invalid,timeout_msand returns;Dynamic behaviorof the components; thesequence,state-machineandexecution-modelviews. - Assign each case the first step whose build contains everything it needs (
step).verifiesnames the interfaces, components or views whose behaviour it shows;asilis the highest of those. - Where the architecture does not say what shall happen at an interface, list a
question for the architect (
/sw-architecture); for an imported item write aquery.
4. Write test code and doubles (BP3, BP6)
- If the project has no integration runner, read "A project without a runner" in
references/building-and-running.mdand ask before copying anything. - One test function per case, named after its ID, in the test program of its step. A
double stands only for a component the step names under
doubles; it has the interface's signatures and returns prepared values. - Set
scriptonce the function exists.
5. Build each step (BP4)
Follow the sequence in references/building-and-running.md.
- The tree is clean (
git status --porcelain) andgit rev-parse --short HEADgives the commit; otherwise stop and show the output. python tools/record.py build --step <name> --manifest <file> --item-under-test <commit>writes the record from the manifest the build wrote. A failed build is recorded too when the user wants it on record; nothing is tested on it.- The tool prints components the step should contain but the build lacks. Report them.
6. Select and run (BP5, BP6)
- Select by the strategy: all cases of the step, the regression set, or the cases
impactnames for a change. Cases of earlier steps may run again as regression; cases of later steps cannot run on this build. - Record with
python tools/record.py test-run --level software-integration --results <file> --build <BLD-ID> --item-under-test <commit> --environment <name> --selection "<rule of the strategy>". A case not run isnot-runwith its reason in the results. - A failing test is information: report it with its log line and propose where it goes
("A failing test" in
references/building-and-running.md); the user decides. Never weaken, delete or skip a case to get a pass.
7. Trace, self-check, summarize (BP7, BP8, BP9)
show <ID>gives the links of a case or an interface in both directions; the run records tie each result to its case and to the build.- Apply
.claude/docs/checklists/software-integration-test.mdto the cases and their code, and.claude/docs/checklists/plan.mdto a drafted strategy. Show findings as proposals; correct what the user accepts. /reviewcitessoftware-integration-test v1; before builds and runs exist the part "Builds and results" isnot-applicable.- Summarize as "Summary for the user" in
references/building-and-running.mdsays.
Writing
- Show the derivation table and ask, for example: "May I write these N integration test
cases to
verification/software-integration/and their functions totests/integration/test_detection.c?" Ask separately before writing a plan, a double or a change to the runner. - IDs:
python tools/record.py next-id software-integration-testornext-id plan. Statusdraft. Before changing an approved item, say that its approval becomes stale.
Checks before you finish
Run python tools/traceability.py check --all.
FORMAT,SCHEMAandLINKfindings on items written in this session: fix them.COV-13,COV-17,COV-18,COV-35toCOV-38for the steps in scope: report each as it is, with what would close it. A pendingCOV-36is "waits for the code".COV-36"changed after build" andCOV-38"the run does not describe it" mean the records describe older software: build and run again. Do not explain them away.
Hand-over
Report, in this order:
- The base practice table with what was done in this session and what is open.
- Per step: build record and result, run record, verdicts, cases not run with reasons -
or
NOT ASSESSEDand why. - Failed cases and where each goes; questions for the architect;
queryitems written. - The remaining findings of the check that concern these items.
- Next:
/reviewfor strategy and test cases;/sw-unit-implement,/sw-detailed-designor/sw-architecturefor defects;/sw-qualification-teston the build of the last step;/baselineto record who was told the results.
Do not
- Do not set
statusto anything butdraft, and do not write a review record. - Do not type or edit a build record, a run record, a manifest or a result file.
- Do not take an expected result from the code, and do not change a case to match it.
- Do not replace an integrated component by a double, or leave a case out, to get a step through.
- Do not change the code under test, and do not copy or adapt a runner without asking.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

