Skip to content
mogemimi edited this page May 8, 2015 · 13 revisions

Prerequisites

Cloning unit testing framework

From the root of your engine directory, run:

git clone --depth=1 [email protected]:srz-zumix/iutest.git third-party/iutest

Running the tests

Building under Mac OSX and Xcode

To run all unit tests, use:

gyp build/unittest.gyp --depth=. -f xcode --generator-output=build.xcodefiles
xcodebuild -project build.xcodefiles/build/unittest.xcodeproj
build/build/Release/unittest

Building under Windows and MSVC2015+

To run all unit tests, use:

PowerShell

python tools\gyp\gyp_main.py build\unittest.gyp `
  --depth=. -f msvs -G msvs_version=2015 --generator-output=build.msvs

Git Bash (MinGW)

python tools/gyp/gyp_main.py build/unittest.gyp \
  --depth=. -f msvs -G msvs_version=2015 --generator-output=build.msvs

(work in progres... 😱)