In my local version of the current three.js (eb8f84647f649d995153ae3a64a260124e977b54) five tests fail. Two of these only fail when using the QUnit browser GUI that is generated in test/unit/UnitTests.html when doing npm run build-test.
The three remaining also fail when doing npm run test. They are the following:
I think these three tests fail relating to a issue with the behavior of assert.step in Qunit as highlighted here: https://github.com/qunitjs/qunit/issues/1226 . It shows that counting the assert steps is not completely transparent from a test writing perspective.
The other two failing tests only happen in the browser GUI and are these:
Because they work when running npm run test they are less of a priority to fix.
I wonder if it is interesting to fix these, although it seems from previous discussion that they seem to still work for some developers.
To reproduce I suggest to create a clean version of the code base with a clean npm install.
I run npm 5.6.0 and have the windows 10 operating system.
In https://github.com/mrdoob/three.js/pull/13607 I made a proof of concept to correct one of the three failing tests. Hope to hear whether this is a goose chase or that this is something worthwhile to pursue further for the other failing tests.
Thanks!
What about the remaining two fails? You've mentioned they happen only in the browser, right? Can you please run the test for BufferGeometry.fromDirectGeometry() and check if the corresponding model loads (examples/models/skinned/simple/simple.js)? Maybe you receive a timeout because the model could not loaded for some reasons...
Hey @Mugen87. The model could not be downloaded due to CORS being disallowed for the examples/models/skinned/simple/simple.js resource.
Funnily enough when searching this problem from a two link process from stack-overflow back to three.js, running things locally is made. On this three.js page the following suggestions are made:
Either choice might go hand in hand with some README text to setup testing. An other funny way would be to link the file served by three.js domain itself. But then the test will be dependent on an internet connection.
What do you think the best option is?
Hope to hear back from you!
Levi
@levilime this is not so much a failing of the tests as a failing of the way you've set up your testing environment - every web app that loads files locally would fail in the exact same way in this case.
A README.md file for the tests is not a bad idea though, it could link to the how to run things locally page.
Good idea. I'll make a PR.
Nice, good work 馃槃
Most helpful comment
@levilime this is not so much a failing of the tests as a failing of the way you've set up your testing environment - every web app that loads files locally would fail in the exact same way in this case.
A
README.mdfile for the tests is not a bad idea though, it could link to the how to run things locally page.