Sha256: 2b3da5a0900873211c175cc800d10e2bb872209aeb5db26bf6fa24643b3c85ea

Contents?: true

Size: 1.4 KB

Versions: 3

Compression:

Stored size: 1.4 KB

Contents

@echo off

rem
rem Begin localization of environment changes.
rem Also make sure the command processor extensions are enabled.
rem
verify other 2> NUL
setlocal enableextensions
if errorlevel 1 (
    echo Unable to enable extensions
    exit /b %ERRORLEVEL%
)

rem
rem Go to the directory where this script resides
rem
pushd "%~dp0"

rem
rem .xspec files directory
rem
set CASES_DIR=cases

rem
rem XSpec output directory (same as default)
rem
set TEST_DIR=%CASES_DIR%\xspec

rem
rem Run test cases
rem
for %%I in ("%CASES_DIR%\*.xspec") do (
    if /i "%APPVEYOR%"=="True" appveyor AddTest "%%~I" -Framework custom -Filename "%~nx0" -Outcome Running

    rem
    rem Generate the report HTML
    rem
    "%COMSPEC%" /c ..\..\bin\xspec.bat "%%~I" > NUL 2>&1

    rem
    rem Compare with the expected HTML
    rem
    java -classpath "%SAXON_CP%" net.sf.saxon.Transform -s:"%TEST_DIR%\%%~nI-result.html" -xsl:processor\compare.xsl | findstr /b /l /c:"OK: Compared "
    if errorlevel 1 (
        echo FAILED: %%~I
        if /i "%APPVEYOR%"=="True" appveyor UpdateTest "%%~I" -Framework custom -Filename "%~nx0" -Outcome Failed -Duration 0
        exit /b 1
    )

    if /i "%APPVEYOR%"=="True" appveyor UpdateTest "%%~I" -Framework custom -Filename "%~nx0" -Outcome Passed -Duration 0
)

rem
rem Go back to the initial directory
rem
popd

rem
rem Exit as success
rem
exit /b 0

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple-xspec-wrapper-0.3.0-java vendor/xspec-1.0.0/test/end-to-end/run-e2e-tests.cmd
simple-xspec-wrapper-0.2.0-java vendor/xspec-1.0.0/test/end-to-end/run-e2e-tests.cmd
simple-xspec-wrapper-0.1.0-java vendor/xspec-1.0.0/test/end-to-end/run-e2e-tests.cmd