-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unit test suite not running because of visual tests #7008
Comments
Agh I think I accidentally committed this, just running the one file:
|
Does it run if you remove that? |
@davepagurek Yes that worked, now there's just a previously failed test that wasn't caught
|
Looks like it's from the PR I just merged, there's a |
ok looks like it has another failure, I'll figure out what's up and make a PR |
I put up this PR fixing that test case: #7010 I also looked into making CI fail when you accidentally keep |
that default behaviour sounds like exactly what we want! that's good to know, thanks |
Most appropriate sub-area of p5.js?
p5.js version
current
Web browser and version
n/a
Operating system
n/a
Steps to reproduce this
Steps:
npm test
.typography
is not run and its relevant entry cannot be found in the logsI was working on a fix to #6997 and noticed that in the unit test suite for
textWrap()
it is expecting the function to throw on incorrect argument type and if it does not throw (say when switch to using FES which does not throw), the unit test should be failing but for some reason it did not.After some digging I found that this behavior starts in commit 7fb55a4, specifically by adding the
test/unit/visual/cases/typography.js
file. Removing the file makes the unit test work as it should again.@davepagurek I'm not sure if it is due to the unit test clashing with the visual test somehow and whether this is actually happening to the WebGL tests as well. Is it possible to further decouple the unit test and visual test, perhaps to the point where they are run by two different tasks if need be? I'll be fixing #6997 first along with its unit test, although it is not run without fixing this. I can try to look a bit deeper if you are not quite available to look at this yet.
The text was updated successfully, but these errors were encountered: