JavaScript Unit Testing

alwaysworking

Testing is an important practice in software development to improve software quality, and it can be precarious no matter what language you’re in. The flexibility offered by JavaScript can make your tests powerful, but if you’re not careful, that same flexibility can leave you frustrated. As Drupal gains more JavaScript developers we'll need to up our testing game.

You should be writing tests to inspire confidence that everything is working as expected. If something breaks, you want to be sure that you’ll catch it and quickly understand what went wrong.

We'll go over some advanced JavaScript testing tools that will leave you less frustrated and help you hit your coverage goals, as well as put together an JavaScript testing essentials toolkit. 

Here are some of the topics we'll cover,

  • A quick introduction to JavaScript unit tests.
  • Start writing asynchronous tests with AVA
  • Managing coverage reports with NYC/Istanbul
  • Automating browser interaction testing with Nightmare.
  • Automating your tests with Travis
  • Writing unit tests for both a new and existing project.
  • Mocking and stubbing API's and functions.

Session Track

Horizons

Experience Level

Advanced

Drupal Version

When & Where

Time: 
Wednesday, 28 September, 2016 - 17:00 to 18:00
Room: 
Auditorium