Skip to content

Commit e8287b2

Browse files
author
Luiko Czub
committed
travis config extented for online utests
if TESTLINK_API_PYTHON_DEVKEY and TESTLINK_API_PYTHON_SERVER_URL are defined as variables in travis repository settings , the unit tests working with real life testlink server will run
1 parent 951d51c commit e8287b2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.travis.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,10 @@ install:
1212
- pip install .
1313

1414
# command to run tests
15-
script: py.test test/utest-offline
15+
# online tests uses TL connection, defined in
16+
# TESTLINK_API_PYTHON_DEVKEY and TESTLINK_API_PYTHON_SERVER_URL
17+
# see https://travis-ci.org/USER/TestLink-API-Python-client/settings/env_vars
18+
# suggestion: use TL demo project
19+
script:
20+
- py.test test/utest-offline
21+
- if [[ $TESTLINK_API_PYTHON_SERVER_URL ]]; then py.test test/utest-online; fi

0 commit comments

Comments
 (0)