Michael Herzog 5f6753b296 AnimationAction: Fix `timeScale` reversal jump. (#33035) 3 днів тому
..
addons 5aea7c6768 Global: Clean up. (#32519) 2 місяців тому
src 5f6753b296 AnimationAction: Fix `timeScale` reversal jump. (#33035) 3 днів тому
utils d516ced437 Cleanup: remove jshint remnants (#32885) 3 тижнів тому
README.md adfc785952 Test: Remove servez reference. 1 місяць тому
UnitTests.html 138769ec01 Update UnitTests.html (#25407) 3 роки тому
three.addons.unit.js 57decfe0bd Tests: Add test for USDZExporter (#31435) 7 місяців тому
three.source.unit.js d76b5d0031 WGSLNodeBuilder: Introduce `generateStorageTextureLoad` (#33029) 4 днів тому

README.md

Setup

  • Execute npm install from the root folder

Run

You can run the unit tests in two environments:

  • Node.js: Execute npm run test-unit from the root folder
  • Browser: Execute node utils/server.js (or run any other local web server) from the root folder and access http://localhost:8080/test/unit/UnitTests.html in a web browser.

See Installation for more information.

Notes

A small number of tests can only be run in a browser environment.

For browser tests, further changes to the library will not be reflected until the page is refreshed.

Troubleshooting

When adding or updating tests, the most common cause of test failure is forgetting to change QUnit.todo to QUnit.test when the test is ready.

An error that indicates "no tests were found" means that an import statement could not be resolved. This is usually caused by a typo in the import path.

Debugging

To debug a test, add debugger; to the test code. Then, run the test in a browser and open the developer tools. The test will stop at the debugger statement and you can inspect the code.

粤ICP备19079148号