Unity Test project for Unity.Library.eppz to run Editor Tests on Travis CI.
- You can install Unity from command line.
- You can run Unity Editor Tests from command line.
- That is it.
See installation details at Downloading and installing Unity, or even better use install-unity
by Adrian Stutz. More on editor test runner at Unity Test Runner, and Command line arguments.
Having tests running inside Unity, you don't need to install any specific language. So just use language: generic
on an os: osx
environment (see .travis.yml
below). To run Unity tests, I wrapped up some tasks in a simple shell script at .scripts/test
(it has a step to convert and output test results as JSON
).
os: osx
language: generic
install:
- sudo python2 .scripts/install-unity.py --package Unity 2017.1.0f3
script:
- .scripts/test $TRAVIS_BUILD_DIR eppz.TestResult.xml
Please note that in order to pick up appropriate OpenSSL version,
install-unity
has to be run viapython2
instead ofpython
.
Licensed under the MIT license.