Permalink
Browse files

Test Runner

Added a test runner bat for ArcGIS Pro for Clearing Operations
  • Loading branch information...
topowright committed Jan 12, 2018
1 parent 3332964 commit d61d5757bb6ac62e6f10484ae6b1a1412956623a
Showing with 62 additions and 0 deletions.
  1. +62 −0 utils/test/ClearingOperationsTestKickPro.bat
@@ -0,0 +1,62 @@
@ECHO OFF
rem ------------------------------------------------------------------------------
rem Copyright 2015-2017 Esri
rem Licensed under the Apache License, Version 2.0 (the "License");
rem you may not use this file except in compliance with the License.
rem You may obtain a copy of the License at
rem
rem http://www.apache.org/licenses/LICENSE-2.0
rem
rem Unless required by applicable law or agreed to in writing, software
rem distributed under the License is distributed on an "AS IS" BASIS,
rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
rem See the License for the specific language governing permissions and
rem limitations under the License.
rem ------------------------------------------------------------------------------
rem TestKickPro.bat
rem ------------------------------------------------------------------------------
rem requirements:
rem * ArcGIS Pro 1.3+
rem * Python Python 3.4+
rem author: ArcGIS Solutions
rem company: Esri
rem ==================================================
rem description:
rem This file starts the test running for ArcGIS Pro (Python 3.4+).
rem
rem ==================================================
rem history:
rem 10/06/2015 - MF - placeholder
rem 10/30/2015 - MF - tests running
rem 12/01/2015 - JH - added parameter for default log file name
rem 07/05/2016 - MF - updates to changes for Pro 1.3+
rem 02/24/2017 - MF - more updates for Pro 1.4.1/ArcMap 10.5
rem 07/20/2017 - MF - split BAT into PRO and MAP versions
rem ==================================================
REM === TEST SETUP ===================================
REM === TEST SETUP ===================================
REM === LOG SETUP ====================================
REM usage: set LOG=<defaultLogFileName.log>
REM name is optional; if not specified, name will be specified for you
set LOG=
REM === LOG SETUP ====================================
REM === RUN PRO TESTS ================================
ECHO Python 3.4 Tests ================================
REM The location of python.exe will depend upon your installation
REM of ArcGIS Pro. Modify the following line as necessary:
"C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe" ClearingOperationsTestRunner.py %LOG%
REM check if ArcGIS Pro/Python 3.4 tests failed
IF %ERRORLEVEL% NEQ 0 (
ECHO 'One or more tests failed'
)
REM === RUN PRO TESTS ================================
REM === CLEANUP ======================================
REM === CLEANUP ======================================
EXIT /B %ERRORLEVEL%

0 comments on commit d61d575

Please sign in to comment.