|
6 роки тому | |
---|---|---|
.. | ||
src | 6 роки тому | |
CMakeLists.txt | 7 роки тому | |
README.md | 7 роки тому |
The spine-cpp-unit-tests project is to test the spine skeletal animation system. It does not perform rendering. It is primarily used for regression testing and leak detection. It is designed to be run from a Continuous Integration server and to passively verify changes automatically on check-in.
MiniCppUnit is a minimal unit testing framework similar to JUnit. It is used here to avoid large dependancies.
Tests are sorted into Suites, Fixtures and Cases. There is one suite, it contains many fixtures and each fixture contains test cases. To turn off a fixture, edit "TestOptions.h". To turn off specific test cases, comment out the TEST_CASE() line in the fixture's header.
This project includes a very minimal memory leak detector. It is based roughly on the leak detector in the Popcap Framework, but has been modified over the years.
The test runner includes the ability to format output messages to signal a CI server. An example interface for Teamcity is included. To implement for another server, determine the wireformat for the messages and duplicate/edit the teamcity_messages class. Teamcity Wire Format
Your CI server should trigger on VCS check-in.
The first build step for the CI server should be to run CMake on the 'spine-cpp-unit-tests' folder. Follow the usage directions below.
This build step should not execute if the previous step did not successfully complete. Depending on the test agent build environment, you should build the output solution or project from the cmake step. Debug is fine.
This build step should not execute if the previous step did not successfully complete. Again, depending on the test agent build environment, you should have produced an executable. Run this executable.
Make sure CMake is installed.
Create a 'build' directory in the 'spine-cpp-unit-tests' folder. Then switch to that folder and execute cmake:
mkdir build cd build cmake ..
msbuild spine_unit_test.sln /t:spine_unit_test /p:Configuration="Debug" /p:Platform="Win32"
This spine Runtime may only be used for personal or internal use, typically to evaluate spine before purchasing. If you would like to incorporate a spine Runtime into your applications, distribute software containing a spine Runtime, or modify a spine Runtime, then you will need a valid spine license. Please see the spine Runtimes Software License for detailed information.
The spine Runtimes are developed with the intent to be used with data exported from spine. By purchasing spine, Section 2
of the spine Software License grants the right to create and distribute derivative works of the spine Runtimes.
original "walk"": 330 second "walk": 0d0
queue interrupt for original walk queue start for second walk drain interrupt and start
0d0 is interrupted 0d0 is ended
"run": 0c0 0d0 is interrupted second walk becomes mixingFrom of run 0c0 is started
queue is drained
first walk: 6f0 second walk: 9c0