-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from autumn-library/bugfix/miltilineStrings
Многострочные строковые литералы и исправление тестирования
- Loading branch information
Showing
10 changed files
with
127 additions
and
158 deletions.
There are no files selected for viewing
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
This file was deleted.
Oops, something went wrong.
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#Использовать coverage | ||
#Использовать 1commands | ||
#Использовать fs | ||
|
||
СистемнаяИнформация = Новый СистемнаяИнформация; | ||
ЭтоWindows = Найти(НРег(СистемнаяИнформация.ВерсияОС), "windows") > 0; | ||
|
||
ФС.ОбеспечитьПустойКаталог(ОбъединитьПути("out", "coverage")); | ||
ПутьКСтат = "out/coverage/stat.json"; | ||
|
||
Команда = Новый Команда; | ||
Команда.УстановитьКоманду("oscript"); | ||
Если НЕ ЭтоWindows Тогда | ||
Команда.ДобавитьПараметр("-encoding=utf-8"); | ||
КонецЕсли; | ||
Команда.ДобавитьПараметр(СтрШаблон("-codestat=%1", ПутьКСтат)); | ||
Команда.ДобавитьПараметр("tasks/test.os"); | ||
Команда.ПоказыватьВыводНемедленно(Истина); | ||
|
||
КодВозврата = Команда.Исполнить(); | ||
|
||
ФайлСтатистики = Новый Файл(ПутьКСтат); | ||
|
||
ПроцессорГенерации = Новый ГенераторОтчетаПокрытия(); | ||
|
||
ПроцессорГенерации.ОтносительныеПути() | ||
.РабочийКаталог("out/coverage") | ||
.КаталогИсходников(ТекущийКаталог()) | ||
.ФайлСтатистики(ФайлСтатистики.ПолноеИмя) | ||
.GenericCoverage() | ||
.Cobertura() | ||
.Сформировать(); | ||
|
||
ЗавершитьРаботу(КодВозврата); |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
&Дуб | ||
Процедура ПриСозданииОбъекета() | ||
Процедура ПриСозданииОбъекта() | ||
|
||
КонецПроцедуры | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
&Аргумент( | ||
Имя = "ARG", | ||
Описание = | ||
"Я | ||
| аргумент с многострочным | ||
| описанием" | ||
) | ||
&ТСтрока | ||
Перем Аргумент; | ||
|
||
&Опция( | ||
Имя = "option o", | ||
Описание = | ||
"Я | ||
| опция с многострочным | ||
| описанием" | ||
) | ||
&Флаг | ||
Перем Опция; | ||
|
||
Перем Результат Экспорт; | ||
|
||
&КомандаПриложения( | ||
Имя = "multiline", | ||
Описание = | ||
"Я | ||
| команда с многострочным | ||
| описанием" | ||
) | ||
Процедура ПриСозданииОбъекта() | ||
Результат = Новый Массив(); | ||
КонецПроцедуры | ||
|
||
&ВыполнениеКоманды | ||
Процедура СформироватьРезультат() Экспорт | ||
|
||
Результат.Добавить(Аргумент); | ||
Результат.Добавить(Опция); | ||
|
||
КонецПроцедуры |