Last active
May 21, 2018 23:21
-
-
Save leoniv/8022b5b47f6cc23e05ad00b0c7227589 to your computer and use it in GitHub Desktop.
spec_engine.epf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Процедура КнопкаВыполнитьНажатие(Кнопка) | |
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