Skip to content

Commit

Permalink
Merge commit 'cd27d82b10ebc84e95e8f2c83249488064cdf305'
Browse files Browse the repository at this point in the history
  • Loading branch information
artbear committed Dec 6, 2016
2 parents 9ac2c45 + cd27d82 commit 53b56f2
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
11 changes: 11 additions & 0 deletions appveyor-runtests.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@chcp 65001

"%ProgramFiles(x86)%\OneScript\bin\oscript.exe" -encoding=utf-8 testrunner.os -runall tests xddReportPath tests

@if %ERRORLEVEL%==2 GOTO good_exit
@if %ERRORLEVEL%==0 GOTO good_exit

exit /B 1

:good_exit
exit /B 0
20 changes: 20 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: 1.2.{build}
pull_requests:
do_not_increment_build_number: true
init:
- ps: Set-WinSystemLocale ru-RU
#environment:
# oscript: C:\Program Files (x86)\OneScript\bin\oscript.exe
install:
- cmd: "git submodule update --init --recursive\n\ncurl -o %temp%\\oscript-setup.exe http://oscript.io/downloads/night-build/exe\n\nrem \n%temp%\\oscript-setup.exe /silent /log=\"%temp%\\oscript-setup.log\" /saveinf=\"%temp%\\oscript-setup-settings.txt\"\n\nSET PATH=%PATH%;%ProgramFiles(x86)%\\OneScript\\bin\n\nrem type %temp%\\oscript-setup.log\n\"%ProgramFiles(x86)%\\OneScript\\bin\\oscript.exe\" -version"
# 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))
artifacts:
- path: tests\tests.xml
4 changes: 1 addition & 3 deletions packagedef
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@

Описание.Имя("1testrunner")
.Версия("1.1")
.Версия("1.2")
.ЗависитОт("logos")
.ЗависитОт("cmdline")
.ЗависитОт("tempfiles")
.ЗависитОт("v8runner")
.ЗависитОт("strings")
.ВключитьФайл("tests")
.ВключитьФайл("testrunner.os")
.ВключитьФайл("finder.os")
.ВключитьФайл("readme.md")
.ИсполняемыйФайл("testrunner.os");
2 changes: 2 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
[![Build status](https://ci.appveyor.com/api/projects/status/7sgdu30u1yqbot4m?svg=true)](https://ci.appveyor.com/project/artbear/1testrunner)

Организовано приемочное тестирование, аналогичное тестированию 1C в проекте [xUnitFor1C](https://github.com/xDrivenDevelopment/xUnitFor1C/wiki)

Основные принципы работы с тестами для скриптов OneScript описаны в [официальной документации OneScript](http://oscript.io/docs/page/testing)
Expand Down

0 comments on commit 53b56f2

Please sign in to comment.