mirror of
https://github.com/Nikolay-Shirokov/cc-1c-skills.git
synced 2026-07-30 16:36:56 +03:00
Кейсы создают исходник через preRun (skd-compile), декомпилируют его и сравнивают workDir со снапшотом (Template.xml + decompiled.json): - minimal-query — базовый DataSetQuery - fields-types-and-restrictions — типы, роли, restrictions, multilang title, appearance, composite type, presentationExpression - calc-total-params — calculatedFields, totalFields, parameters с autoDates/valueList/hidden/availableValues - templates-with-style-merge-drilldown — built-in стили header/data, merge >/|, drilldown свёртка - variant-full — selection с folder, filter Or, conditionalAppearance, outputParameters, dataParameters="auto", structure shorthand, groupTemplates - dataset-types — DataSetQuery + DataSetObject + DataSetUnion Все 6 passes на runtime=powershell. Готовая база для регрессии при питон-порте (можно прогнать тот же набор через --runtime python). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
44 lines
1.6 KiB
JSON
44 lines
1.6 KiB
JSON
{
|
||
"name": "templates с built-in стилями (header/data), merge >/|, drilldown свёрткой",
|
||
"preRun": [
|
||
{
|
||
"script": "skd-compile/scripts/skd-compile",
|
||
"input": {
|
||
"dataSets": [{
|
||
"name": "Тест",
|
||
"query": "ВЫБРАТЬ * ИЗ Справочник.Номенклатура",
|
||
"fields": ["Имя: string", "Сумма: decimal(15,2)"]
|
||
}],
|
||
"templates": [
|
||
{
|
||
"name": "Шапка",
|
||
"style": "header",
|
||
"widths": [20, 30, 25, 25],
|
||
"rows": [
|
||
["Имя", "Сумма", "Поступление", ">"],
|
||
["|", "|", "из произв.", "со сч.40"],
|
||
["К1", "К2", "К3", "К4"]
|
||
]
|
||
},
|
||
{
|
||
"name": "Данные",
|
||
"style": "data",
|
||
"widths": [20, 30, 25, 25],
|
||
"rows": [["{Имя}", "{Сумма}", "{Поступление}", "{СчетПрочее}"]],
|
||
"parameters": [
|
||
{ "name": "Имя", "expression": "Имя" },
|
||
{ "name": "Сумма", "expression": "Сумма" },
|
||
{ "name": "Поступление", "expression": "СуммаПоступления", "drilldown": "СуммаПоступления" },
|
||
{ "name": "СчетПрочее", "expression": "СчетПрочее" }
|
||
]
|
||
}
|
||
]
|
||
},
|
||
"args": { "-DefinitionFile": "{inputFile}", "-OutputPath": "Template.xml" },
|
||
"cwd": "{workDir}"
|
||
}
|
||
],
|
||
"params": { "templatePath": "Template.xml" },
|
||
"outputPath": "decompiled.json"
|
||
}
|