mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-06-13 01:14:56 +03:00
ffb0ee740d
build-webtest-config упал после ужесточения form-compile (запрет runtime-типа FormDataStructure для главного реквизита). Перевёл типы на конкретные CatalogObject.X / DocumentObject.X без cfg:-префикса. Добавил platform-webtest-config.test.mjs — переиспользует шаги сборки и в хвосте делает db-create + db-load-xml + db-update. Зелёный, 24 шага. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
42 lines
1.3 KiB
JavaScript
42 lines
1.3 KiB
JavaScript
// platform-webtest-config.test.mjs — Platform verification of synthetic web-test config
|
|
// Reuses the build steps from build-webtest-config and adds db-create/load/update tail.
|
|
// Goal: confirm that the synthetic configuration is actually accepted by the 1C platform.
|
|
|
|
import { steps as buildSteps } from './build-webtest-config.test.mjs';
|
|
|
|
export const name = 'Загрузка синтетической конфигурации web-test в платформу';
|
|
export const setup = 'none';
|
|
export const cache = 'webtest-config-platform';
|
|
export const requiresPlatform = true;
|
|
|
|
export const steps = [
|
|
...buildSteps,
|
|
|
|
// ── Platform load ──
|
|
{
|
|
name: 'db-create: создание файловой ИБ',
|
|
script: 'db-create/scripts/db-create',
|
|
args: {
|
|
'-V8Path': '{v8path}',
|
|
'-InfoBasePath': '{workDir}/testdb',
|
|
},
|
|
},
|
|
{
|
|
name: 'db-load-xml: загрузка конфигурации',
|
|
script: 'db-load-xml/scripts/db-load-xml',
|
|
args: {
|
|
'-V8Path': '{v8path}',
|
|
'-InfoBasePath': '{workDir}/testdb',
|
|
'-ConfigDir': '{workDir}',
|
|
},
|
|
},
|
|
{
|
|
name: 'db-update: обновление БД',
|
|
script: 'db-update/scripts/db-update',
|
|
args: {
|
|
'-V8Path': '{v8path}',
|
|
'-InfoBasePath': '{workDir}/testdb',
|
|
},
|
|
},
|
|
];
|