Test Name:Swift - PO - single test, core output structure
Feature:Swift Analysis
User Role:Product Owner
Traceability:@SHIFT-17
Description:Verifies that a Product Owner uploading a single Swift test file receives properly structured documentation output with no missing values.
This Test Verifies:
Verification Step
What It Checks
Documentation appears in output panel
The analysis produces visible output after processing the Swift file
JSON output has no unresolved values
All fields in the downloaded output are fully populated with no placeholders or blanks
JSON framework is 'swift'
The output correctly identifies the test framework as Swift
JSON has 1 or more tests
At least one test case is detected and documented from the uploaded file
Every test has a non-empty test_name
Each documented test case carries a meaningful name in the output
Test Name:Swift - PO - struct+for data-driven expands one test per row
Feature:Swift Analysis
User Role:Product Owner
Traceability:@SHIFT-19
Description:Verifies that a Product Owner uploading a data-driven Swift test file sees each data row expanded into its own individual test case in the output.
This Test Verifies:
Verification Step
What It Checks
Documentation appears in output panel
The analysis produces visible output after processing the data-driven Swift file
JSON output has no unresolved values
All fields in the downloaded output are fully populated with no placeholders or blanks
JSON framework is 'swift'
The output correctly identifies the test framework as Swift
JSON has 3 or more tests
Data-driven rows are each expanded into separate documented test cases, producing at least 3 entries
Every test has a non-empty test_name
Each expanded test case carries a meaningful name in the output
Test Name:Swift - QAM - single test, coverage matrix populated
Feature:Swift Analysis
User Role:QA Manager
Traceability:@SHIFT-18
Description:Verifies that a QA Manager uploading a single Swift test file receives output that includes a populated coverage matrix alongside the core test documentation.
This Test Verifies:
Verification Step
What It Checks
Documentation appears in output panel
The analysis produces visible output after processing the Swift file
JSON output has no unresolved values
All fields in the downloaded output are fully populated with no placeholders or blanks
JSON framework is 'swift'
The output correctly identifies the test framework as Swift
JSON has 1 or more tests
At least one test case is detected and documented from the uploaded file
Every test has a non-empty test_name
Each documented test case carries a meaningful name in the output
First test has a non-empty test_coverage_matrix array
The QA Manager view includes a coverage matrix with at least one entry for the test case
Test Name:Swift - QAM - data-driven collapses
Feature:Swift Analysis
User Role:QA Manager
Traceability:@SHIFT-20
Description:Verifies that a QA Manager uploading a data-driven Swift test file sees all data rows collapsed into a single test case whose coverage matrix rows match the number of data examples.
This Test Verifies:
Verification Step
What It Checks
Documentation appears in output panel
The analysis produces visible output after processing the data-driven Swift file
JSON output has no unresolved values
All fields in the downloaded output are fully populated with no placeholders or blanks
JSON framework is 'swift'
The output correctly identifies the test framework as Swift
JSON has exactly 1 test
Data-driven rows are collapsed into a single documented test case for the QA Manager view
Every test has a non-empty test_name
The collapsed test case carries a meaningful name in the output
Coverage matrix row count matches the examples
The number of rows in the coverage matrix equals the number of data-driven input rows from the Swift file
Coverage matrix rows use the correct schema for 'swift'
Each coverage matrix row conforms to the expected Swift-specific field structure
Test Name:Swift - PO - single test, core output structure
Feature:Swift Analysis
Traceability:@SHIFT-17
Journey:A Product Owner uploads a single Swift test fixture and verifies that the analysis pipeline produces valid, fully-resolved JSON output containing at least one named test.
Scenario
Given Context
When Action
Then Assertion
Gherkin Type
Swift - PO - single test, core output structure
User is on the Analyze page
Selects format 'swift' and role 'Product Owner', uploads 'swift_single_sample.swift', and clicks 'Document test cases'
Output panel shows documentation; downloaded JSON has no unresolved values, framework is 'swift', contains 1+ tests, and every test has a non-empty test_name
Positive
Test Name:Swift - PO - struct+for data-driven expands one test per row
Feature:Swift Analysis
Traceability:@SHIFT-19
Journey:A Product Owner uploads a data-driven Swift fixture and verifies that the analyser expands struct/for-loop parameterisation into one discrete test entry per data row, yielding at least three tests.
Scenario
Given Context
When Action
Then Assertion
Gherkin Type
Swift - PO - struct+for data-driven expands one test per row
User is on the Analyze page
Selects format 'swift' and role 'Product Owner', uploads 'swift_datadriven_sample.swift', and clicks 'Document test cases'
Output panel shows documentation; downloaded JSON has no unresolved values, framework is 'swift', and contains 3 or more tests each with a non-empty test_name
Positive
Test Name:Swift - QAM - single test, coverage matrix populated
Feature:Swift Analysis
Traceability:@SHIFT-18
Journey:A QA Manager uploads a single Swift test fixture and verifies that the analysis output includes a populated test_coverage_matrix on the first test in addition to core structural validity.
Scenario
Given Context
When Action
Then Assertion
Gherkin Type
Swift - QAM - single test, coverage matrix populated
User is on the Analyze page
Selects format 'swift' and role 'QA Manager', uploads 'swift_single_sample.swift', and clicks 'Document test cases'
Output panel shows documentation; downloaded JSON has no unresolved values, framework is 'swift', contains 1+ tests with non-empty test_name, and the first test has a non-empty test_coverage_matrix array
Positive
Test Name:Swift - QAM - data-driven collapses
Feature:Swift Analysis
Traceability:@SHIFT-20
Journey:A QA Manager uploads a data-driven Swift fixture and verifies that the analyser collapses all parameterised cases into exactly one test whose coverage matrix rows match the number of examples and conform to the Swift schema.
Scenario
Given Context
When Action
Then Assertion
Gherkin Type
Swift - QAM - data-driven collapses
User is on the Analyze page
Selects format 'swift' and role 'QA Manager', uploads 'swift_datadriven_sample.swift', and clicks 'Document test cases'
Output panel shows documentation; downloaded JSON has no unresolved values, framework is 'swift', contains exactly 1 test with a non-empty test_name, coverage matrix row count matches the source examples, and rows use the correct Swift schema