Kalamuna Testing Ethos
What/when do we test?
...
- We need to have code linting across all technologies (PHP/JS/whatever)
- EditorConfig should be included in each project.
- JShint ESLint for Drupal 8 Standards
Tests are for clients too.
...
- We’ll start simple with tools like Selenium IDE, get more complex as opportunities.
- We want to make delivery quicker and safer.
Testing Areas
HTML Validation
Testing to make sure the HTML coming out of the template is valid.
Javascript
Testing Tools
- Mocha (New hotness, more advanced than Jasmine)
- Jasmine
- Karma (formerly Testum, runner for Jasmine)
...
Browser Drivers
- PhantomJS
- ZombieJS
PHP
PHPUnit for new tests, leverage existing Simpletest
...
How useful are all the Simpletest unit tests shipped with D7 core/contrib to us in our projects?
Would they be more helpful if we’re using REAL site data to generate fixtures w/SimpleTest Fixture?
PHPUnit → D8
ClassLoader is required for PHPUnit
Resources
...