-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
How to disable debug tools? #4214
Comments
Do you mean that running all tests together means unintentionally enabling debug tools? That should be fixed in general, not just for broken tests. |
When debug tools' tests are executed they're enabled for testing purposes but there is no functionality to disable them. We should create |
I think that those tests are broken as they use |
Yes, but the main problem is that engine debug tools are enabled and they shouldn't be. Please look at my comment here: https://github.com/ckeditor/ckeditor5-dev/issues/290#issuecomment-346858435. |
I decided to create a function which allows disabling engine debug functions. |
Feature: Engine debug tools can be easily disabled using disableEngineDebug() function. Closes #1193.
When tests are executed as a single entry point, two tests fail:
https://github.com/ckeditor/ckeditor5-engine/blob/82335aee6426a7418416927fbe0db5d471c71465/tests/model/document/document.js#L113-L141
and
https://github.com/ckeditor/ckeditor5-engine/blob/82335aee6426a7418416927fbe0db5d471c71465/tests/model/document/document.js#L143-L153
In order to fix these tests, I can add a method
toJSON
intooperation
object (toJSON: sinon.spy())
. But I'm not sure whether this solution is proper. I would like to disable engine debug tools but I guess it's tricky.This ticket is a last blocker for https://github.com/ckeditor/ckeditor5-dev/issues/290.
The text was updated successfully, but these errors were encountered: