This repository was archived by the owner on May 25, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
412 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,13 @@ oscript_modules/ | |
|
||
src/cmd/oscript\.cfg | ||
ovm*.exe | ||
|
||
temp/ | ||
exec.log | ||
*.dll | ||
|
||
coverage/ | ||
|
||
junit-bdd\.xml | ||
|
||
\.sonar/ |
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,3 +1,6 @@ | ||
{ | ||
"language-1c-bsl.linterEntryPoint": "src/ovm.os" | ||
"language-1c-bsl.linterEntryPoint": "src/cmd/ovm.os", | ||
"gherkin-autocomplete.featureLibraries": [ | ||
"./oscript_modules/1bdd/features/lib" | ||
] | ||
} |
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,43 @@ | ||
#language: ru | ||
|
||
Функциональность: Интеграционный сценарий | ||
|
||
Как Пользователь ovm | ||
Я хочу быть уверен, что оно в принципе работает | ||
Чтобы начать применять ovm в жизни | ||
|
||
Контекст: | ||
Допустим Я устанавливаю переменной среды "OVM_INSTALL_PATH" значение "./temp/ovm" | ||
|
||
|
||
Сценарий: Вывод справки | ||
Когда Я выполняю команду "ovm" | ||
Тогда я вижу в консоли вывод "OneScript Version Manager" | ||
И я вижу в консоли вывод "Строка запуска: ovm [OPTIONS] КОМАНДА [аргументы...]" | ||
|
||
Сценарий: Вывод версии | ||
Когда Я выполняю команду "ovm -v" | ||
Тогда я вижу в консоли строку подобно "\d+\.\d+\.\d+" | ||
|
||
Сценарий: Установка версии | ||
Когда Я выполняю команду "ovm install stable" | ||
Тогда я вижу в консоли вывод "Установка OneScript stable..." | ||
И я вижу в консоли вывод "Установка OneScript stable завершена" | ||
И я вижу в консоли вывод "ovm use stable" | ||
|
||
Когда Я выполняю команду "ovm ls" | ||
Тогда я вижу в консоли строку подобно "stable -> .*" | ||
|
||
Сценарий: Использование версии | ||
Допустим Я выполняю команду "ovm install stable" | ||
Когда Я выполняю команду "ovm use stable" | ||
Тогда я вижу в консоли вывод "OneScript stable активирован" | ||
|
||
Сценарий: Проверка использования версии | ||
Когда Я выполняю команду "ovm ls" | ||
И Я Показываю вывод команды | ||
Тогда я вижу в консоли строку подобно "current -> .*" | ||
И Я выполняю команду "which oscript" | ||
И я вижу в консоли строку подобно ".*oscript$" | ||
И Я выполняю команду "which opm" | ||
И я вижу в консоли строку подобно ".*opm$" |
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,31 @@ | ||
// Реализация шагов BDD-фич/сценариев c помощью фреймворка https://github.com/artbear/1bdd | ||
|
||
Перем БДД; //контекст фреймворка 1bdd | ||
|
||
// Метод выдает список шагов, реализованных в данном файле-шагов | ||
Функция ПолучитьСписокШагов(КонтекстФреймворкаBDD) Экспорт | ||
БДД = КонтекстФреймворкаBDD; | ||
|
||
ВсеШаги = Новый Массив; | ||
|
||
ВсеШаги.Добавить("ЯУстанавливаюПеременнойСредыЗначение"); | ||
|
||
Возврат ВсеШаги; | ||
КонецФункции | ||
|
||
// Реализация шагов | ||
|
||
// Процедура выполняется перед запуском каждого сценария | ||
Процедура ПередЗапускомСценария(Знач Узел) Экспорт | ||
|
||
КонецПроцедуры | ||
|
||
// Процедура выполняется после завершения каждого сценария | ||
Процедура ПослеЗапускаСценария(Знач Узел) Экспорт | ||
|
||
КонецПроцедуры | ||
|
||
//Я устанавливаю переменной среды "OVM_INSTALL_PATH" значение "./temp/ovm" | ||
Процедура ЯУстанавливаюПеременнойСредыЗначение(Знач ИмяПеременной, Знач ЗначениеПеременной) Экспорт | ||
УстановитьПеременнуюСреды(ИмяПеременной, ЗначениеПеременной); | ||
КонецПроцедуры |
Oops, something went wrong.