forked from microsoft/jupyter-Kqlmagic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_tests.bat
26 lines (24 loc) · 876 Bytes
/
run_tests.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
REM !/bin/bash
REM
REM In case anaconada is not activated, uncomment next line
REM C:/Users/michabin/AppData/Local/Continuum/anaconda3/Scripts/activate.bat
REM
REM set environment variables that are needed by the tests
set TEST_CONNECTION_STR=appinsights://appid='DEMO_APP';appkey='DEMO_KEY'
set KQLMAGIC_NOTEBOOK_APP=ipython
set KQLMAGIC_CONFIGURATION=auto_popup_schema=False;test_notebook_app='jupyternotebook'
REM
REM change directory to the location of the tests
cd azure\tests
REM
REM Execute nose to run the tests in the context of jupyter / ipython
ipython -c "import nose; argv=['','--config=tests_config.ini'];nose.run(argv=argv)" --matplotlib='qt'
REM
REM Insert breakpoints with `from nose.tools import set_trace; set_trace()`
REM
REM we are done
pause "tests finished !!!"
set TEST_CONNECTION_STR=
set KQLMAGIC_NOTEBOOK_APP=
set KQLMAGIC_CONFIGURATION=
cd ..\..