Skip to content

Instantly share code, notes, and snippets.

@leoniv
Last active May 21, 2018 23:21
Show Gist options
  • Save leoniv/8022b5b47f6cc23e05ad00b0c7227589 to your computer and use it in GitHub Desktop.
Save leoniv/8022b5b47f6cc23e05ad00b0c7227589 to your computer and use it in GitHub Desktop.
spec_engine.epf
Процедура КнопкаВыполнитьНажатие(Кнопка)
for each test in TestsGet().UnloadValues() do
RunTest(test, "FIXME");
enddo;
КонецПроцедуры
function RunTest(Form, TestName) export
return ObjectNew().Exec(ObjectNew().Parse(Form), TestName);
endfunction
function TestsGet()
result = New ValueList;
For each form in ThisObject.Metadata().Forms do
if СтрЧислоВхождений(form.Name+"$", "_test$") then
result.Add(form.Name, form.name);
endif;
enddo;
return result;
endfunction
function ObjectNew()
return ВнешниеОбработки.Создать(ЭтотОбъект.ИспользуемоеИмяФайла);
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment