Michael Blix e4139cf1eb USDZExporter: Add option for onlyVisible (#31489) преди 5 месеца
..
addons e4139cf1eb USDZExporter: Add option for onlyVisible (#31489) преди 5 месеца
src e4d73f5b63 Avoid tests on the frustum boundary (#31456) преди 5 месеца
utils 64b50b0910 Core: Increase version of Object/Scene format. (#31096) преди 8 месеца
README.md 53711ab0c3 Typos (#30119) преди 1 година
UnitTests.html 138769ec01 Update UnitTests.html (#25407) преди 2 години
three.addons.unit.js 57decfe0bd Tests: Add test for USDZExporter (#31435) преди 5 месеца
three.source.unit.js 6a0dab07a3 BatchedMesh: Fix `setInstanceCount()`. (#31458) преди 5 месеца

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 npx servez -p 8080 --ssl (or run any other local web sever) from the root folder and access https://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号