Tags
Language
Tags
November 2024
Su Mo Tu We Th Fr Sa
27 28 29 30 31 1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

Learning Behavior-driven Development with JavaScript (Repost)

Posted By: naag
Learning Behavior-driven Development with JavaScript (Repost)

Learning Behavior-driven Development with JavaScript By Enrique Amodeo
2015 | 392 Pages | ISBN: 1784392642 | PDF | 3 MB

Create powerful yet simple-to-code BDD test suites in JavaScript using the most popular tools in the community About This Book Master the most popular testing tools in the JavaScript ecosystem, such as CucumberJS, Mocha, SinonJS, and more. Learn how Behavior-driven development can help you to write software that is more modular and has less defects. Avoid common mistakes in testing, simplify your test suites, and make them more maintainable using a very pragmatic approach to BDD. Who This Book Is For TThis book is ideal for any JavaScript developer who is interested in producing well-tested code. If you have no prior experience with testing, Node.js, or any other tool, do not worry, as they will be explained from scratch. What You Will Learn Understand the basic concepts of BDD and how it is different from classic unit testing Divide your system into different modules that can be tested separately, but at the same time not falling into the trap of unit testing Use Mocha, Sinon.JS, and Chai to write expressive BDD features Implement Cucumber.js to automate tests written in Gherkin so that your stakeholders can understand them Discover how to test asynchronous systems, either based on callbacks or promises Test a RESTful web API and a rich UI using WebDriverJS and Protractor Refactor and keep your test code base maintainable using best practices and patterns such as PageObject