Repository navigation
Home
Sitecore.TestrunnerJS is the tool that brings infrastructure for easy creation of javascript integration tests for Sitecore applications that are built on SPEAK framework. Typical SPEAK application consists of huge amount of client javascript code: user written, SPEAK framework itself and code generated from SPEAK renderings. Even if you are not changing something in your code it is still easy to break something while changing SPEAK renderings. Javascript integration tests provide you the ability to check interaction between different client units and detect problems earier.
Sitecore.TestrunnerJS supports two modes of test fixtures running:
Browser mode:
a. Test fixtures are loaded by convention depending on relative path in URL and name of opened page.
b. It is possible to override convention mode by specifying custom test fixture file in URL by query parameter
c. Test results output is stored in browser console (Firefox and Chrome browsers are supported)
Console mode:
a. All pages of the SPEAK application under test are tested one after another in phantomjs headless browser
b. Test results output is made to console.
It is possible to configure and use predefined fake server for AJAX requests or get data from real server.
Sitecore.TestrunnerJS uses following frameworks for test creation: