Testing server calls in generated HTML
Matteo Vaccari completes his article on testing template-generated HTML, by looking at how to use TDD with pages that make calls to the server. more… Source: martinfowler
Matteo Vaccari completes his article on testing template-generated HTML, by looking at how to use TDD with pages that make calls to the server. more… Source: martinfowler
In the story so far, Matteo Vaccari has shown how to test the behaviour of the HTML templates, by checking the structure of the generated HTML. That’s good, but what…
Testing templates for generating HTML leads to tests that are very similar. Matteo Vaccari wisely likes to separate the common elements of tests from those that vary. He continues his…
Juntao Qiu’s completes his set of data fetching patterns for single-page applications. Prefetching involves fetching data before it’s called for in the application flow. Although this can mean data is…
Single-Page Applications often require a lot of code to be downloaded to the browser, which can delay a page’s initial appearance. Juntao Qiu’s next pattern, Code Splitting, describes how this…
Last week I added a small feature to this website, changing the way it renders footnotes. That prompted me to write this quick note about how I use footnotes, and…
Matteo Vaccari continues his testing of template-generated HTML by describing tests for the contents of that HTML. He shows how to gradually build up the template, using Test-Driven Development in…
Juntao Qiu’s next data fetching pattern looks at how to specify fallback behavior using markup. This allows developers to pull such declarations out of the JavaScript components and into the…
When building a server-side rendered web application, it’s valuable to test the HTML that’s generated through templates. While these can be tested through end-to-end tests running in the browser, such…