mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-24 05:31:02 +03:00
feat(skill-tests): add form-add + form-compile steps to platform integration tests
Now that ExtendedPresentation and InterfaceCompatibilityMode bugs are fixed, platform integration tests can include full form generation: - platform-config: form-add + form-compile for Catalog and Document forms - platform-epf: epf-add-form + form-compile with elements/attributes/commands - platform-cfe: form-add + form-compile for borrowed Catalog form Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
72bad1aaaa
commit
70e684d189
@@ -1,6 +1,6 @@
|
||||
// platform-epf.test.mjs — Integration test: EPF build/dump roundtrip
|
||||
// Requires: 1C platform (1cv8.exe) via .v8-project.json
|
||||
// Steps: epf-init (no forms) → epf-build → epf-dump
|
||||
// Steps: epf-init → epf-add-form → form-compile → epf-build → epf-dump
|
||||
|
||||
export const name = 'Сборка и разборка внешней обработки (roundtrip)';
|
||||
export const setup = 'none';
|
||||
@@ -14,7 +14,35 @@ export const steps = [
|
||||
args: { '-Name': 'RoundtripТест', '-SrcDir': '{workDir}' },
|
||||
},
|
||||
|
||||
// ── 2. Build EPF binary ──
|
||||
// ── 2. Add form to EPF ──
|
||||
{
|
||||
name: 'epf-add-form: форма обработки',
|
||||
script: 'epf-add-form/scripts/add-form',
|
||||
args: {
|
||||
'-ObjectPath': '{workDir}/RoundtripТест.xml',
|
||||
'-FormName': 'Форма',
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
name: 'form-compile: наполнение формы обработки',
|
||||
script: 'form-compile/scripts/form-compile',
|
||||
input: {
|
||||
elements: [
|
||||
{ id: 'ПутьКФайлу', type: 'input', path: 'ПутьКФайлу', title: 'Путь к файлу' },
|
||||
{ id: 'Загрузить', type: 'button', title: 'Загрузить', action: 'Загрузить' },
|
||||
],
|
||||
attributes: [
|
||||
{ id: 'ПутьКФайлу', type: 'String' },
|
||||
],
|
||||
commands: [
|
||||
{ id: 'Загрузить', title: 'Загрузить' },
|
||||
],
|
||||
},
|
||||
args: { '-FormPath': '{workDir}/RoundtripТест/Forms/Форма', '-JsonPath': '{inputFile}' },
|
||||
},
|
||||
|
||||
// ── 3. Build EPF binary ──
|
||||
{
|
||||
name: 'epf-build: сборка EPF',
|
||||
script: 'epf-build/scripts/epf-build',
|
||||
@@ -25,14 +53,14 @@ export const steps = [
|
||||
},
|
||||
},
|
||||
|
||||
// ── 3. Create temp DB for dump (epf-dump requires database connection) ──
|
||||
// ── 4. Create temp DB for dump ──
|
||||
{
|
||||
name: 'db-create: временная ИБ для разборки',
|
||||
script: 'db-create/scripts/db-create',
|
||||
args: { '-V8Path': '{v8path}', '-InfoBasePath': '{workDir}/tmpdb' },
|
||||
},
|
||||
|
||||
// ── 4. Dump EPF back to XML ──
|
||||
// ── 5. Dump back to XML ──
|
||||
{
|
||||
name: 'epf-dump: разборка EPF в XML',
|
||||
script: 'epf-dump/scripts/epf-dump',
|
||||
|
||||
Reference in New Issue
Block a user