eXist-db / docker-existdb

Docker image builder for eXist-db
GNU Affero General Public License v3.0
11 stars 6 forks source link

running tests locally #35

Closed grantmacken closed 5 years ago

grantmacken commented 6 years ago

30 @adamretter

Also, perhaps it is better to extract the shell scripts from .travis.yml into a separate shell script. With a separate shell script, we can then also run the tests locally, and we can easily check and validate any syntax errors.

As it stands now, the script blocks run sequentially,. Each travis script block should either succeed or fail,
When the script block fails, the travis build will fail What I think I could do is

This way we could test locally (and in travis ), by calling prove and getting a nice tap report. A setup and tear down stage could be done via simple Makefile

test:
   docker-compose up d
   prove
   docker-compose down
adamretter commented 6 years ago

I wasn't asking for anything that complex :-) I still wanted the tests to run sequentially

duncdrum commented 6 years ago

while i m not opposed to the idea of using tap, my main concern is with improving parallel execution of our tests-suite on travis first. As it stands even the three smoke tests could be run in parallel, especially functional test should take advantage of paralleliml. i ll have to think a bit more about how to best run tests locally, but won't get around to it in the next two weeks.