Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294295

Improve test coverage for theme output

$
0
0

Issue Summary

The test coverage for theme output across core is patchy, and in some places not well implemented.

Tests that compare one string of HTML output to another are fragile, and failures are not necessarily representitive of a failure to the user (prehaps because an elements attributes are in a different order. It would be better to use superior analysis tools such as CSS Selectors or XPath/SimpleXml to perform assertions with rendered output.

Related Issues

#1971860: Twig debug mode breaks tests


Viewing all articles
Browse latest Browse all 294295

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>