modernize-test-starter
Modernize QUnit unit tests and OPA5 integration tests to the UI5 Test Starter concept.
Use this skill when:
- The linter reports prefer-test-starter for *.qunit.html or *.qunit.js files
- Test HTML files use manual sap-ui-core.js bootstrapping instead of Test Starter's runTest.js/createSuite.js
- Test JS files use Core.ready(), Core.attachInit(), or jsUnitTestSuite instead of sap.ui.define
- OPA test HTML files exist with per-test Opa5.extendConfig and manual bootstrapping
- An AllJourneys.js orchestrator loads OPA journeys dynamically
- OPA journeys call iStartMyUIComponent instead of iStartMyAppInAFrame
- User asks to modernize tests, modernize test infrastructure, or adopt Test Starter
Handles unit tests (Core.ready removal, sap.ui.define wrapping) and OPA challenges
(page-object imports, Opa5 config, journey orchestration, QUnit 1.x assert modernization,
in-window-to-iframe launcher migration).
Trigger on: prefer-test-starter warnings, test modernization requests, iStartMyUIComponent.
Pinned to revision 4e8964e24a5a, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/modernize-test-starter/SKILL.md
- skills/modernize-test-starter/LICENSE
- skills/modernize-test-starter/references/linter-invisible-patterns.md
- skills/modernize-test-starter/references/pattern-a-modernization.md
- skills/modernize-test-starter/references/pattern-b-modernization.md
- skills/modernize-test-starter/references/pattern-u-iframe-migration.md
- skills/modernize-test-starter/references/testsuite-configuration.md
- skills/modernize-test-starter/scripts/check-dangling-entries.js
- skills/modernize-test-starter/scripts/check-dangling-entries.test.js
- skills/modernize-test-starter/scripts/detect-cross-window-imports.js
- skills/modernize-test-starter/scripts/detect-cross-window-imports.test.js
- skills/modernize-test-starter/scripts/parse-testsuite.js
- skills/modernize-test-starter/scripts/parse-testsuite.test.js
Every link opens the file at its source, pinned to the revision this page describes.