Скрыть объявление
Более 45000 материалов для скачивания в нашем приватном разделе. Не пропусти, возможно данную складчину уже выкупили и выложили для ознакомления.
Скрыть объявление
Гость отличная новость! Мы открыли доступ к ранее скрытому контенту.

Вам доступно более 44 000 видео уроков, книг и программ без VIP статуса. Более подробно ЗДЕСЬ.

Открыто TDD при разработке на javascript [Pagmatic Bookself]

Тема в разделе "Книги, аудиокниги", создана пользователем Солнышко, 7 июл 2016.

0/5, Голосов: 0

Набор участников
1700.00 руб.
0 из 15
Расчетный взнос:
125 руб.
  • (Записывайтесь, чем больше участников, тем меньше расчетный взнос)

  1. Солнышко

    Солнышко Команда форума


    Развеем миф о том, что приложения на js нельзя тестировать. Что бы вы не использовали - Node.js, Express, jQuery, Ангулар или прямую работу с DOM - вы можете писать тесты

    Debunk the myth that JavaScript is not easily testable. Whether you use Node.js, Express, MongoDB, jQuery, AngularJS, or directly manipulate the DOM, you can test-drive JavaScript. Learn the craft of writing meaningful, deterministic automated tests with Karma, Mocha, and Chai. Test asynchronous JavaScript, decouple and properly mock out dependencies, measure code coverage, and create lightweight modular designs of both server-side and client-side code. Your investment in writing tests will pay high dividends as you create code that’s predictable and cost-effective to change.

    Design and code JavaScript applications with automated tests. Writing meaningful tests is a skill that takes learning, some unlearning, and a lot of practice, and with this book, you’ll hone that skill. Fire up the editor and get hands-on through practical exercises for effective automated testing and designing maintainable, modular code.

    Start by learning when and why to do manual testing vs. automated verification. Focus tests on the important things, like the pre-conditions, the invariants, complex logic, and gnarly edge cases. Then begin to design asynchronous functions using automated tests. Carefully decouple and mock out intricate dependencies such as the DOM, geolocation API, file and database access, and Ajax calls to remote servers.

    Step by step, test code that uses Node.js, Express, MongoDB, jQuery, and AngularJS. Know when and how to use tools such as Chai, Istanbul, Karma, Mocha, Protractor, and Sinon. Create tests with minimum effort and run them fast without having to spin up web servers or manually editHTML pages to run in browsers. Then explore end-to-end testing to ensure all parts are wired and working well together.

    Don’t just imagine creating testable code, write it.

    Contents & Extracts

    This book is currently in beta, so the contents and extracts will change as the book is developed.

    • - Automation Shall Set You Free http://media.pragprog.com/titles/vsjavas/automate.pdf
      • The Challenges of Change
        - Testing vs. Verification
        - Adoption Automated Verification
        - Why Is It Hard to Verify
        - How to Approach Automated Testing
        - Wrapping Up

      - Creating Automated Tests
      • Test Drive Your Design
        • Let’s Get Started
          - Design with Positive, Negative, and Exception Tests
          - Design Server-Side Code
          - Measure Server-side Code Coverage
          - Prepare for Client Side Testing
          - Design Client-Side Code
          - Measure Client-side Code Coverage
          - Wrapping Up

        - Test Asynchrony http://media.pragprog.com/titles/vsjavas/async.pdf
        • Server-Side Callbacks
          - Client-side Callbacks
          - Test Your Promises
          - Wrapping Up

        - Tactfully Tackle Dependencies
        • A Problem and Spiking to Learn
          - Visualize a Modular Design
          - Separate Dependencies Where Possible
          - Employ Test Doubles
          - Inject the Dependencies
          - Test Interactions
          - Use Sinon to Reduce Noise
          - Review and Run
          - Wrapping Up

      - Real World Automated Testing
      • Test Drive Node.js Apps http://media.pragprog.com/titles/vsjavas/concerns.pdf
        • Start with a Strategic—Just Enough—Design
          - Leap Into Tactical—Test First—Design
          - Continue the Design
          - Create a Spike to Gain Insight
          - Modularize to Facilitate Testing
          - Separate Concerns
          - Integrate and Run
          - Review the Coverage and Design
          - Providing HTTP Access
          - Wrapping Up

        - Test Drive Express Apps
        • Design for Testability
          - Setup the Express App and Run a Canary Test
          - Design the Database Connection
          - Design the Model
          - Design the Routes
          - Measure Code Coverage
          - Take It for a Drive
          - Wrapping Up

        - Working with the DOM and jQuery
        • Create a Strategic Design
          - Create the Tactical Design with Tests
          - Evolve Code in Small Steps
          - Take the UI for a Short Drive
          - Complete the Design
          - Test with jQuery
          - Measure Code Coverage
          - Wrapping Up

        - Using AngularJS
        • Testing the AngularJS Way
          - Start with an Initial Design
          - Focus on the Controller
          - Design Service Interaction
          - Separate Concerns, Reduce Mocking
          - Continue the Design
          - Design the Service
          - Measure Code Coverage
          - Take the UI for a Drive
          - Wrapping Up

        - Test Drive Angular 2
        • Spike to Learn Angular
          - Design Angular Apps with Tests
          - Test Drive the Component
          - Test Drive the Service
          - Test Drive the Pipe
          - Test Drive the BootStrap Code
          - Take it for a Ride
          - Complete the Design
          - Wrapping Up

        - Integrate and Test End-to-End
        • Get to Know Protractor
          - Start the Server and Configure the Database
          - Test jQuery UI
          - Use Page Object
          - Test AngularJS UI
          - Test Angular 2 UI
          - Wrapping Up

        - Test Drive Your Apps
        • Fruit of the Efforts
          - Size and Levels of Testing
          - Test Driving: The Programmer’s Guide
          - Test Driving: The Team Lead’s/Architect’s Guide
          - Test Driving: The Manager’s Guide
          - Rock on!
Оценить эту тему:

Обратная связь

E-mail: support@infostock.net Телефон / Phone: +7 (499) 705-16-74