-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
8 changed files
with
99 additions
and
6 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 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,33 @@ | ||
// Реализация шагов BDD-фич/сценариев c помощью фреймворка https://github.com/artbear/1bdd | ||
|
||
Перем БДД; //контекст фреймворка 1bdd | ||
|
||
// Метод выдает список шагов, реализованных в данном файле-шагов | ||
Функция ПолучитьСписокШагов(КонтекстФреймворкаBDD) Экспорт | ||
БДД = КонтекстФреймворкаBDD; | ||
|
||
ВсеШаги = Новый Массив; | ||
|
||
ВсеШаги.Добавить("ЯИзвлекаюИзмененияИзВнешнегоРепозитория"); | ||
|
||
Возврат ВсеШаги; | ||
КонецФункции | ||
|
||
// Реализация шагов | ||
|
||
// Процедура выполняется перед запуском каждого сценария | ||
Процедура ПередЗапускомСценария(Знач Узел) Экспорт | ||
|
||
КонецПроцедуры | ||
|
||
// Процедура выполняется после завершения каждого сценария | ||
Процедура ПослеЗапускаСценария(Знач Узел) Экспорт | ||
|
||
КонецПроцедуры | ||
|
||
//Я извлекаю изменения из внешнего репозитория | ||
Процедура ЯИзвлекаюИзмененияИзВнешнегоРепозитория() Экспорт | ||
ГитРепозиторий = БДД.ПолучитьИзКонтекста("ГитРепозиторий"); | ||
ГитРепозиторий.Извлечь(); | ||
КонецПроцедуры | ||
|
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,24 @@ | ||
# language: ru | ||
|
||
Функциональность: Извлечение изменений | ||
|
||
Как разработчик | ||
Я хочу иметь возможность извлекать изменения из удаленного репозитория | ||
Чтобы мочь автоматизировать больше рутинных действий на OneScript | ||
|
||
Контекст: | ||
Допустим Я создаю новый объект ГитРепозиторий | ||
И Я создаю временный каталог и сохраняю его в контекст | ||
И Я инициализирую репозиторий во временном каталоге | ||
И Я создаю временный файл "temp.tmp" во временном каталоге и сохраняю его в контекст | ||
И Я добавляю временный файл в индекс | ||
И Я фиксирую изменения с сообщением "Добавлен тестовый файл" | ||
И Я сохраняю значение временного каталога в переменной "ВнешийРепозиторий" | ||
И Я создаю новый объект ГитРепозиторий | ||
И Я создаю временный каталог и сохраняю его в контекст | ||
И Я инициализирую репозиторий во временном каталоге | ||
И Я добавляю внешний репозиторий "origin" по сохраненному адресу внешнего репозитория | ||
|
||
Сценарий: Извлечение изменений из внешнего репозитория | ||
Когда Я извлекаю изменения из внешнего репозитория | ||
Тогда Вывод команды содержит "new branch" |
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