dmsurti / AssimpKit

A library (macOS, iOS) that converts the files supported by Assimp to Scene Kit scenes.
http://assimpkit.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
474 stars 54 forks source link

Add tests #28

Closed dmsurti closed 7 years ago

dmsurti commented 7 years ago

Fixes: #6

  1. Adds assets for testing. These assets are classified by owner, license-type and file format type.

  2. The directory structure for assets is:

      assets/apple/models-proprietary ==> assets from apple sample code (proprietary)
      assets/of/models ==> assets from open frameworks (open)
      assets/assimp/models ==> assets from assimp (open)
      assets/assimp/models-properietary ==> assets from assimp (this is models-nonbsd dir in assimp repo)
  3. The assets directory also contains:

    • valid-extensions.txt ==> a list of file format extensions this library does not currently supports
    • invalid.txt ==> a list of files that have errors
    • not-supported-formats.txt ==> a list of file format extensions this library does not currently support
  4. Adds AssetImporterTests which loops through all model files and tests each for node hierarchy, geometry, lights, camera, materials (colors and textures) and animation data

  5. Refactors the project to a workspace which has the following 2 projects:

    • iOS-Example project
    • OSX-Example project
    • Both the above projects depend on a static library for the macOS, iOS platform that is built from shared code under Code/Models.
    • There exist 2 Logic Test targets for the AssimpKit library code
    • This shared library and multiple projects with workspace is derived from: Apple's Unit Testing Apps and frameworks sample code
    • This structure allows the representation of real world usage of AssimpKit library