FBX2glTF/npm/tests
Pär Winzell 5ec3184a8a
Mocha integration test suite (#150)
This moves ./npm to ./npm/fbx2gltf, and introduces a Mocha / TypeScript based testing harness. 

We're also adding a GIT LFS dependency, but only for people who want to run tests. We're using LFS to store the many FBX models we want to convert to GLB as part of the integration test suite.
2019-01-25 16:01:08 -08:00
..
models Mocha integration test suite (#150) 2019-01-25 16:01:08 -08:00
test Mocha integration test suite (#150) 2019-01-25 16:01:08 -08:00
.npmignore Mocha integration test suite (#150) 2019-01-25 16:01:08 -08:00
README.md Mocha integration test suite (#150) 2019-01-25 16:01:08 -08:00
package.json Mocha integration test suite (#150) 2019-01-25 16:01:08 -08:00
tsconfig.json Mocha integration test suite (#150) 2019-01-25 16:01:08 -08:00
yarn.lock Mocha integration test suite (#150) 2019-01-25 16:01:08 -08:00

README.md

FBX2glTF Regression Suite

It's imperative that as we add new functionality to FBX2glTF and refactor code, that old behaviour does not change underfoot in unexpected and detrimental ways.

This is a very simple first beginnings of a test suite for converting FBX files and ensuring the consistency of the GLB. At present all we do is make sure that the generated GLB is valid. We will have to add other integrity checks here for the tests to accomplish what we intend.

We will also want to test the same file with a variety of command line switches, e.g. with Draco compression and different materials.

Setting up

We recommend using Yarn rather than NPM. Installation instructions can be found here.

yarn install

Running tests

yarn test