mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-18 16:49:41 +03:00
72bad1aaaa
- form-add v1.2: ExtendedPresentation only for DataProcessor/Report/External* forms (Catalogs, Documents, Registers etc. don't have this property — platform rejects it) - cf-init v1.1: InterfaceCompatibilityMode Taxi → TaxiEnableVersion8_2 (matches all real configs: acc 8.3.20/24/27, erp 8.3.24) - cfe-init v1.1: read InterfaceCompatibilityMode from -ConfigPath base config (analogous to existing CompatibilityMode auto-detection) - Remove workaround in platform-cfe integration test (cf-edit modify-property) - Update 162 snapshot Configuration.xml + 7 form metadata snapshots Tests: 301/301 passed Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
47 lines
1.5 KiB
JavaScript
47 lines
1.5 KiB
JavaScript
// 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
|
|
|
|
export const name = 'Сборка и разборка внешней обработки (roundtrip)';
|
|
export const setup = 'none';
|
|
export const requiresPlatform = true;
|
|
|
|
export const steps = [
|
|
// ── 1. Create EPF ──
|
|
{
|
|
name: 'epf-init: пустая обработка',
|
|
script: 'epf-init/scripts/init',
|
|
args: { '-Name': 'RoundtripТест', '-SrcDir': '{workDir}' },
|
|
},
|
|
|
|
// ── 2. Build EPF binary ──
|
|
{
|
|
name: 'epf-build: сборка EPF',
|
|
script: 'epf-build/scripts/epf-build',
|
|
args: {
|
|
'-V8Path': '{v8path}',
|
|
'-SourceFile': '{workDir}/RoundtripТест.xml',
|
|
'-OutputFile': '{workDir}/RoundtripТест.epf',
|
|
},
|
|
},
|
|
|
|
// ── 3. Create temp DB for dump (epf-dump requires database connection) ──
|
|
{
|
|
name: 'db-create: временная ИБ для разборки',
|
|
script: 'db-create/scripts/db-create',
|
|
args: { '-V8Path': '{v8path}', '-InfoBasePath': '{workDir}/tmpdb' },
|
|
},
|
|
|
|
// ── 4. Dump EPF back to XML ──
|
|
{
|
|
name: 'epf-dump: разборка EPF в XML',
|
|
script: 'epf-dump/scripts/epf-dump',
|
|
args: {
|
|
'-V8Path': '{v8path}',
|
|
'-InputFile': '{workDir}/RoundtripТест.epf',
|
|
'-OutputDir': '{workDir}/roundtrip-dump',
|
|
'-InfoBasePath': '{workDir}/tmpdb',
|
|
},
|
|
},
|
|
];
|