Vtome.ru - электронная библиотека

Outside-In React Development : A TDD Primer

  • Добавил: literator
  • Дата: 19-02-2023, 18:47
  • Комментариев: 0
Outside-In React Development : A TDD PrimerНазвание: Outside-In React Development: A TDD Primer
Автор: Josh Justice
Издательство: Leanpub
Год: 2022-10-13
Страниц: 245
Язык: английский
Формат: pdf (true), epub
Размер: 27.3 MB

Learn how to build React apps using outside-in test-driven development, including end-to-end tests with Cypress and unit tests with Jest and React Testing Library. Includes an extended exercise building two application features. See how outside-in TDD leads to a thorough test suite, better regression safety, and a faster development speed.

How should we decide what kinds of tests to write for our React applications, and how many of each kind? How can we write a test suite that gives us confidence rather than just giving us busywork? Instead of tests slowing down our development, could they actually help us go faster?

Outside-In React Development tackles these questions by applying the practice of outside-in test-driven development (TDD) to React applications. It explains the problems that agile software development solves, the key role that test-driven development plays, and the way outside-in test-driven development helps end-to-end tests and unit tests to work together. The main part of the book is an extended exercise building a React front-end application from scratch using outside-in TDD.

The World Wide Web started out as a platform for displaying only static documents, but now it hosts fully-featured interactive applications. The jаvascript language and browser APIs allow building user interfaces that are as rich as conventional desktop and mobile applications in many respects. Front-end jаvascript frameworks like React abstract away many of the low-level details of managing rich user interfaces, allowing developers to focus on delivering business functionality.

Back when jаvascript was only used to provide a little enhancement on top of server-rendered web pages, testing jаvascript code was both difficult and, in many cases, unnecessary. But with many web applications now implementing their entire user interface in jаvascript, testing that jаvascript code has become essential. Responding to this need, in the past few years the open-source community has heavily invested in jаvascript testing tools—test runners, framework-specific testing libraries, and browser automation tools.

But good testing tools aren’t the only thing needed for developers to achieve a positive testing experience. Many developers loathe writing tests, and jаvascript developers are no exception. Maybe the tests take much longer to write than the corresponding production code. Maybe one change to production code breaks many tests, necessitating lots of effort to fix them. Maybe the tests fail sporadically for no obvious reason. Maybe the tests don’t actually seem to be confirming anything that matters. Whatever the reason, many jаvascript developers feel like testing isn’t delivering on its promise to make their apps better.

You'll learn:

How and why to get your app tested on CI and automatically deploying before the first feature is written
How to use the two-level TDD loop to stay laser-focused on building out one user-deliverable feature to completion
How to write tests that provide maximum safety with minimum ongoing cost by testing the interface instead of the implementation
How to get thorough coverage of edge cases while keeping your test suite fast

Скачать Outside-In React Development : A TDD Primer












ОТСУТСТВУЕТ ССЫЛКА/ НЕ РАБОЧАЯ ССЫЛКА ЕСТЬ РЕШЕНИЕ, ПИШИМ СЮДА!


ПРАВООБЛАДАТЕЛЯМ


СООБЩИТЬ ОБ ОШИБКЕ ИЛИ НЕ РАБОЧЕЙ ССЫЛКЕ



Внимание
Уважаемый посетитель, Вы зашли на сайт как незарегистрированный пользователь.
Мы рекомендуем Вам зарегистрироваться либо войти на сайт под своим именем.
Информация
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.