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: suppress assets logs from qunit tests #13871
Conversation
That's a simple change, but I tried more things than am willing to admit before getting to this 😅 (a custom logger might have been written at some point) |
You will still get flooded by 404s when running tests in a non-headless browser. And let's hope no code/test depends on |
yes but this is mostly annoying on CI and we don't have any test failing from this so far |
Well of course... one plugin does... Test ErrorsTest Failed: getMetadata - image file |
Well ok I will go other way and just remove logging... |
Partially reverts: discourse@956f849 Note that this way of running tests will soon be deprecated in favor of `ember test` and this shouldn’t matter anymore.
cb775fc
to
2b496ca
Compare
This reverts commit 1b64901. Test is failing with the following message: ``` navigate to http://localhost:60099/qunit?hidepassed=1&seed=312984199721107128645754962579661839397&qunit_disable_auto_start=1 2021-07-29T02:57:13.303Z - (type: network/error) message: Failed to load resource: the server responded with a status of 403 (Forbidden), url: http://localhost:60099/extra-locales/admin?v=eeeea38a700966a1a7fb600b23f3a222 2021-07-29T02:57:43.823Z - (type: network/error) message: Failed to load resource: net::ERR_EMPTY_RESPONSE, url: http://localhost:60099/assets/discourse/tests/test_helper.js ReferenceError: define is not defined at eval (discourse/tests/acceptance/about-test:1:1) at http://localhost:60099/assets/discourse/tests/core_plugins_tests.js:1:1 ReferenceError: require is not defined at eval (discourse/tests/test_starter:5:24) at http://localhost:60099/assets/discourse/tests/test_starter.js:1:1 2021-07-29T02:57:43.891Z - (type: network/error) message: Failed to load resource: the server responded with a status of 403 (Forbidden), url: http://localhost:60099/extra-locales/admin?v=eeeea38a700966a1a7fb600b23f3a222 Tests timed out ```
This reverts commit 1b64901. Test is failing with the following message: ``` navigate to http://localhost:60099/qunit?hidepassed=1&seed=312984199721107128645754962579661839397&qunit_disable_auto_start=1 2021-07-29T02:57:13.303Z - (type: network/error) message: Failed to load resource: the server responded with a status of 403 (Forbidden), url: http://localhost:60099/extra-locales/admin?v=eeeea38a700966a1a7fb600b23f3a222 2021-07-29T02:57:43.823Z - (type: network/error) message: Failed to load resource: net::ERR_EMPTY_RESPONSE, url: http://localhost:60099/assets/discourse/tests/test_helper.js ReferenceError: define is not defined at eval (discourse/tests/acceptance/about-test:1:1) at http://localhost:60099/assets/discourse/tests/core_plugins_tests.js:1:1 ReferenceError: require is not defined at eval (discourse/tests/test_starter:5:24) at http://localhost:60099/assets/discourse/tests/test_starter.js:1:1 2021-07-29T02:57:43.891Z - (type: network/error) message: Failed to load resource: the server responded with a status of 403 (Forbidden), url: http://localhost:60099/extra-locales/admin?v=eeeea38a700966a1a7fb600b23f3a222 Tests timed out ```
Partially reverts: 956f849
Note that this way of running tests will soon be deprecated in favor of
ember test
and this shouldn’t matter anymore.