Skip to content

Geri-Borbas/Unity.Test.eppz

Repository files navigation

eppz! Build Status

Unity Test project for Unity.Library.eppz to run Editor Tests on Travis CI.

How it works

  1. You can install Unity from command line.
  2. You can run Unity Editor Tests from command line.
  3. 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.

Setup on Travis CI

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 via python2 instead of python.

License

Licensed under the MIT license.

About

Unity Test project for https://github.com/eppz/Unity.Library.eppz to run Editor Tests on Travis CI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published