Skip to content
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

DEV: Skip loading plugin JS when running only core tests #18047

Merged
merged 4 commits into from Aug 23, 2022

Conversation

davidtaylorhq
Copy link
Member

Plugins often change core behavior, and thereby cause core's tests to fail. In CI, we work around this problem by running core CI without any plugins loaded.

In development, the only option to safely run the core tests is to uninstall all plugins, which is clearly a bad developer experience. This commit aims to improve that experience.

The qunit_skip_plugins=1 flag would previously prevent the plugin tests from running. This commit extends that flag to also affect the plugin's application JS.

Plugins often change core behavior, and thereby cause core's tests to fail. In CI, we work around this problem by running core CI without any plugins loaded.

In development, the only option to safely run the core tests is to uninstall all plugins, which is clearly a bad developer experience. This commit aims to improve that experience.

The `qunit_skip_plugins=1` flag would previously prevent the plugin **tests** from running. This commit extends that flag to also affect the plugin's application JS.
Makes it clear what's happened when looking at the HTML in the dev tools
…se-test-load-dynamic-js.js

Co-authored-by: Jarek Radosz <jradosz@gmail.com>
@davidtaylorhq davidtaylorhq marked this pull request as ready for review August 23, 2022 09:08
@davidtaylorhq davidtaylorhq merged commit 3b1a46f into main Aug 23, 2022
@davidtaylorhq davidtaylorhq deleted the plugin-js-test-loading branch August 23, 2022 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants