-
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
21 changed files
with
1,502 additions
and
434 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
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,20 @@ | ||
@chcp 65001 | ||
|
||
"%ProgramFiles(x86)%\OneScript\bin\oscript.exe" -encoding=utf-8 c:\projects\1testrunner\testrunner.os -runall tests xddReportPath tests | ||
|
||
@if %ERRORLEVEL%==2 GOTO good_exit | ||
@if %ERRORLEVEL%==0 GOTO good_exit | ||
|
||
exit /B 1 | ||
|
||
:good_exit | ||
|
||
"%ProgramFiles(x86)%\OneScript\bin\oscript.exe" -encoding=utf-8 src\bdd.os features/core -junit-out tests/bdd-log.xml | ||
|
||
@if %ERRORLEVEL%==2 GOTO good_exit_bdd | ||
@if %ERRORLEVEL%==0 GOTO good_exit_bdd | ||
|
||
exit /B 1 | ||
|
||
:good_exit_bdd | ||
exit /B 0 |
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,35 @@ | ||
version: 1.2.{build} | ||
pull_requests: | ||
do_not_increment_build_number: true | ||
init: | ||
- ps: Set-WinSystemLocale ru-RU | ||
install: | ||
- cmd: >- | ||
git submodule update --init --recursive | ||
curl -o %temp%\oscript-setup.exe http://oscript.io/downloads/night-build/exe | ||
%temp%\oscript-setup.exe /silent /log="%temp%\oscript-setup.log" /saveinf="%temp%\oscript-setup-settings.txt" | ||
dir "%ProgramFiles(x86)%\OneScript\bin" | ||
dir "%ProgramFiles(x86)%\OneScript\lib" | ||
"%ProgramFiles(x86)%\OneScript\bin\oscript.exe" -version | ||
git clone -q --branch=master https://github.com/artbear/1testrunner.git c:\projects\1testrunner | ||
git clone -q --branch=master https://github.com/artbear/1commands.git "%ProgramFiles(x86)%\OneScript\lib\1commands" | ||
# to disable automatic builds | ||
build: off | ||
test_script: | ||
- cmd: appveyor-runtests.cmd | ||
after_test: | ||
- ps: # upload results to AppVeyor | ||
- ps: Write-Host "Загружаю результаты тестов на CI" | ||
- ps: $wc = New-Object 'System.Net.WebClient' | ||
- ps: $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\tests\tests.xml)) | ||
- ps: $wc.UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\tests\bdd-log.xml)) | ||
artifacts: | ||
- path: tests\tests.xml | ||
- path: tests\bdd-log.xml |
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,29 @@ | ||
# language: ru | ||
|
||
Функционал: Выполнение команд системы | ||
Как Пользователь | ||
Я хочу иметь возможность запускать скрипты oscript | ||
Чтобы я мог проще автоматизировать больше действий на OneScript | ||
|
||
Контекст: Очищаю параметры команды | ||
Допустим Я очищаю параметры команды "oscript" в контексте | ||
И я включаю отладку лога с именем "oscript" | ||
И я выключаю отладку лога с именем "oscript" | ||
|
||
Сценарий: Выполнение команды без параметров | ||
Когда Я выполняю команду "oscript" | ||
Тогда Вывод команды "oscript" содержит "Version" | ||
И Код возврата команды "oscript" равен 0 | ||
|
||
Сценарий: Выполнение команды с параметрами в одной строке | ||
Когда Я выполняю команду "oscript" c параметрами "-version" | ||
Тогда Я сообщаю вывод команды "oscript" | ||
И Вывод команды "oscript" содержит "." | ||
И Код возврата команды "oscript" равен 0 | ||
|
||
Сценарий: Выполнение команды с параметрами, добавляемыми раздельно | ||
Когда Я добавляю параметр "-version" для команды "oscript" | ||
И Я выполняю команду "oscript" | ||
Тогда Я сообщаю вывод команды "oscript" | ||
И Вывод команды "oscript" содержит "." | ||
И Код возврата команды "oscript" равен 0 |
Oops, something went wrong.