[wp-trac] [WordPress Trac] #51734: Run core unit tests from src again, again
WordPress Trac
noreply at wordpress.org
Mon Feb 22 23:03:37 UTC 2021
#51734: Run core unit tests from src again, again
------------------------------+-----------------------------
Reporter: johnbillion | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: Future Release
Component: Build/Test Tools | Version: 5.1
Severity: normal | Resolution:
Keywords: | Focuses:
------------------------------+-----------------------------
Comment (by johnbillion):
Current status of running the tests from `src` without any built files in
place: 30 errors, all due to missing files, and 2 failures.
{{{
There were 30 errors:
1) Tests_Dependencies_jQuery::test_presence_of_jquery_no_conflict
file_get_contents(/var/www/src/wp-includes/js/jquery/jquery.js): failed to
open stream: No such file or directory
/var/www/tests/phpunit/tests/dependencies/jquery.php:43
2) Tests_Dependencies_Scripts::test_no_source_mapping
UnexpectedValueException:
RecursiveDirectoryIterator::__construct(/var/www/build/): failed to open
dir: No such file or directory
/var/www/tests/phpunit/tests/dependencies/scripts.php:1421
3) Tests_Formatting_Emoji::test_unfiltered_emoji_cdns
readfile(/var/www/src/wp-includes/js/wp-emoji-loader.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/formatting.php:5719
/var/www/tests/phpunit/includes/utils.php:353
/var/www/tests/phpunit/tests/formatting/Emoji.php:16
4) Tests_Formatting_Emoji::test_filtered_emoji_svn_cdn
readfile(/var/www/src/wp-includes/js/wp-emoji-loader.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/formatting.php:5719
/var/www/tests/phpunit/includes/utils.php:353
/var/www/tests/phpunit/tests/formatting/Emoji.php:34
5) Tests_Formatting_Emoji::test_filtered_emoji_png_cdn
readfile(/var/www/src/wp-includes/js/wp-emoji-loader.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/formatting.php:5719
/var/www/tests/phpunit/includes/utils.php:353
/var/www/tests/phpunit/tests/formatting/Emoji.php:55
6) Test_oEmbed_Controller::test_request_invalid_format
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/src/wp-includes/class-wp-oembed-controller.php:131
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:1139
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:985
/var/www/tests/phpunit/includes/spy-rest-server.php:57
/var/www/tests/phpunit/tests/oembed/controller.php:298
7) Test_oEmbed_Controller::test_request_json
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/src/wp-includes/class-wp-oembed-controller.php:131
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:1139
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:985
/var/www/tests/phpunit/includes/spy-rest-server.php:57
/var/www/tests/phpunit/tests/oembed/controller.php:322
8) Test_oEmbed_Controller::test_request_static_front_page
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/src/wp-includes/class-wp-oembed-controller.php:131
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:1139
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:985
/var/www/tests/phpunit/includes/spy-rest-server.php:57
/var/www/tests/phpunit/tests/oembed/controller.php:365
9) Test_oEmbed_Controller::test_request_xml
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/src/wp-includes/class-wp-oembed-controller.php:131
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:1139
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:985
/var/www/tests/phpunit/includes/spy-rest-server.php:57
/var/www/tests/phpunit/tests/oembed/controller.php:410
10) Test_oEmbed_Controller::test_rest_pre_serve_request
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/src/wp-includes/class-wp-oembed-controller.php:131
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:1139
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:985
/var/www/tests/phpunit/includes/spy-rest-server.php:57
/var/www/tests/phpunit/tests/oembed/controller.php:479
11) Test_oEmbed_Controller::test_rest_pre_serve_request_wrong_format
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/src/wp-includes/class-wp-oembed-controller.php:131
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:1139
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:985
/var/www/tests/phpunit/includes/spy-rest-server.php:57
/var/www/tests/phpunit/tests/oembed/controller.php:493
12) Test_oEmbed_Controller::test_rest_pre_serve_request_wrong_method
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/src/wp-includes/class-wp-oembed-controller.php:131
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:1139
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:985
/var/www/tests/phpunit/includes/spy-rest-server.php:57
/var/www/tests/phpunit/tests/oembed/controller.php:505
13) Test_oEmbed_Controller::test_proxy_with_internal_url
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/src/wp-includes/embed.php:647
/var/www/src/wp-includes/class-wp-oembed-controller.php:188
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:1139
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:985
/var/www/tests/phpunit/includes/spy-rest-server.php:57
/var/www/tests/phpunit/tests/oembed/controller.php:695
14) Test_oEmbed_Controller::test_proxy_with_static_front_page_url
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/src/wp-includes/embed.php:647
/var/www/src/wp-includes/class-wp-oembed-controller.php:188
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:1139
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:985
/var/www/tests/phpunit/includes/spy-rest-server.php:57
/var/www/tests/phpunit/tests/oembed/controller.php:742
15) Tests_oEmbed_Response_Data::test_get_oembed_response_data
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/tests/phpunit/tests/oembed/getResponseData.php:19
16) Tests_oEmbed_Response_Data::test_get_oembed_response_data_author
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/tests/phpunit/tests/oembed/getResponseData.php:55
17)
Tests_oEmbed_Response_Data::test_get_oembed_response_data_with_public_true_custom_post_status
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/tests/phpunit/tests/oembed/getResponseData.php:145
18)
Tests_oEmbed_Response_Data::test_get_oembed_response_data_maxwidth_too_high
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/tests/phpunit/tests/oembed/getResponseData.php:180
19)
Tests_oEmbed_Response_Data::test_get_oembed_response_data_maxwidth_too_low
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/tests/phpunit/tests/oembed/getResponseData.php:189
20)
Tests_oEmbed_Response_Data::test_get_oembed_response_data_maxwidth_invalid
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/tests/phpunit/tests/oembed/getResponseData.php:198
21)
Tests_oEmbed_Response_Data::test_get_oembed_response_data_with_thumbnail
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/tests/phpunit/tests/oembed/getResponseData.php:221
22)
Tests_oEmbed_Response_Data::test_get_oembed_response_data_for_attachment
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/tests/phpunit/tests/oembed/getResponseData.php:240
23) Tests_Embed_Template::test_oembed_output_post
readfile(/var/www/src/wp-includes/js/wp-emoji-loader.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/formatting.php:5719
/var/www/src/wp-includes/formatting.php:5656
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/class-wp-hook.php:316
/var/www/src/wp-includes/plugin.php:484
/var/www/src/wp-includes/theme-compat/header-embed.php:29
/var/www/src/wp-includes/template.php:730
/var/www/src/wp-includes/template.php:676
/var/www/src/wp-includes/general-template.php:48
/var/www/src/wp-includes/theme-compat/embed.php:13
/var/www/tests/phpunit/tests/oembed/template.php:27
24) Tests_Embed_Template::test_oembed_output_post_with_thumbnail
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:1182
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/class-wp-hook.php:316
/var/www/src/wp-includes/plugin.php:484
/var/www/src/wp-includes/theme-compat/footer-embed.php:18
/var/www/src/wp-includes/template.php:730
/var/www/src/wp-includes/template.php:676
/var/www/src/wp-includes/general-template.php:92
/var/www/src/wp-includes/theme-compat/embed.php:24
/var/www/tests/phpunit/tests/oembed/template.php:59
25) Tests_Embed_Template::test_get_post_embed_html
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/tests/phpunit/tests/oembed/template.php:283
26) Tests_Embed_Template::test_js_no_ampersands
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/tests/phpunit/tests/oembed/template.php:296
27)
Tests_WP_oEmbed::test_wp_filter_pre_oembed_result_prevents_http_request_for_internal_permalinks
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/src/wp-includes/embed.php:647
/var/www/src/wp-includes/embed.php:1239
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/class-wp-oembed.php:391
/var/www/tests/phpunit/tests/oembed/wpOembed.php:36
28)
Tests_WP_oEmbed::test_wp_filter_pre_oembed_result_prevents_http_request_when_viewing_the_post
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/src/wp-includes/embed.php:647
/var/www/src/wp-includes/embed.php:1239
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/class-wp-oembed.php:391
/var/www/tests/phpunit/tests/oembed/wpOembed.php:51
29) WP_Test_REST_Schema_Initialization::test_build_wp_api_client_fixtures
file_get_contents(/var/www/src/wp-includes/js/wp-embed.js): failed to open
stream: No such file or directory
/var/www/src/wp-includes/embed.php:458
/var/www/src/wp-includes/embed.php:672
/var/www/src/wp-includes/class-wp-hook.php:292
/var/www/src/wp-includes/plugin.php:212
/var/www/src/wp-includes/embed.php:577
/var/www/src/wp-includes/class-wp-oembed-controller.php:131
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:1139
/var/www/src/wp-includes/rest-api/class-wp-rest-server.php:985
/var/www/tests/phpunit/includes/spy-rest-server.php:57
/var/www/tests/phpunit/tests/rest-api/rest-schema-setup.php:452
30) Tests_Shortcode::test_php_and_js_shortcode_attribute_regexes_match
file_get_contents(/var/www/src/wp-includes/js/shortcode.js): failed to
open stream: No such file or directory
/var/www/tests/phpunit/tests/shortcode.php:749
--
There were 2 failures:
1) Tests_Dependencies_MediaElementjs::test_exclusion_of_flash
Failed asserting that 0 is greater than 0.
/var/www/tests/phpunit/tests/dependencies/mediaelementjs.php:28
2)
Tests_Dependencies_Scripts::test_wp_add_inline_script_before_after_concat_with_core_dependency
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
<script type='text/javascript' src='http://example.com' id='test-example-
js'></script>
<script type='text/javascript' src='/wp-includes/js/dist/vendor/wp-
polyfill.js' id='wp-polyfill-js'></script>
<script type='text/javascript' id='wp-polyfill-js-after'>
-( 'fetch' in window ) || document.write( '<script src="http://example.org
/wp-includes/js/dist/vendor/wp-polyfill-fetch.js"></scr' + 'ipt>' );(
document.contains ) || document.write( '<script src="http://example.org
/wp-includes/js/dist/vendor/wp-polyfill-node-contains.js"></scr' + 'ipt>'
);( window.DOMRect ) || document.write( '<script src="http://example.org
/wp-includes/js/dist/vendor/wp-polyfill-dom-rect.js"></scr' + 'ipt>' );(
window.URL && window.URL.prototype && window.URLSearchParams ) ||
document.write( '<script src="http://example.org/wp-
includes/js/dist/vendor/wp-polyfill-url.js"></scr' + 'ipt>' );(
window.FormData && window.FormData.prototype.keys ) || document.write(
'<script src="http://example.org/wp-includes/js/dist/vendor/wp-polyfill-
formdata.js"></scr' + 'ipt>' );( Element.prototype.matches &&
Element.prototype.closest ) || document.write( '<script
src="http://example.org/wp-includes/js/dist/vendor/wp-polyfill-element-
closest.js"></scr' + 'ipt>' );( 'objectFit' in
document.documentElement.style ) || document.write( '<script
src="http://example.org/wp-includes/js/dist/vendor/wp-polyfill-object-
fit.min.js"></scr' + 'ipt>' );
+( 'fetch' in window ) || document.write( '<script src="http://example.org
/wp-includes/js/dist/vendor/wp-polyfill-fetch.js"></scr' + 'ipt>' );(
document.contains ) || document.write( '<script src="http://example.org
/wp-includes/js/dist/vendor/wp-polyfill-node-contains.js"></scr' + 'ipt>'
);( window.DOMRect ) || document.write( '<script src="http://example.org
/wp-includes/js/dist/vendor/wp-polyfill-dom-rect.js"></scr' + 'ipt>' );(
window.URL && window.URL.prototype && window.URLSearchParams ) ||
document.write( '<script src="http://example.org/wp-
includes/js/dist/vendor/wp-polyfill-url.js"></scr' + 'ipt>' );(
window.FormData && window.FormData.prototype.keys ) || document.write(
'<script src="http://example.org/wp-includes/js/dist/vendor/wp-polyfill-
formdata.js"></scr' + 'ipt>' );( Element.prototype.matches &&
Element.prototype.closest ) || document.write( '<script
src="http://example.org/wp-includes/js/dist/vendor/wp-polyfill-element-
closest.js"></scr' + 'ipt>' );( 'objectFit' in
document.documentElement.style ) || document.write( '<script
src="http://example.org/wp-includes/js/dist/vendor/wp-polyfill-object-
fit.js"></scr' + 'ipt>' );
</script>
<script type='text/javascript' src='/wp-includes/js/dist/dom-ready.js' id
='wp-dom-ready-js'></script>
<script type='text/javascript' src='/wp-includes/js/dist/hooks.js' id
='wp-hooks-js'></script>
/var/www/tests/phpunit/includes/abstract-testcase.php:677
/var/www/tests/phpunit/tests/dependencies/scripts.php:770
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51734#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list