Observation: Automated testing is not used with legacy projects.
My goal is to encourage you to start testing. Today I will present you the HOW TO part using CasperJS.
3. Goals Today
Observation: Automated testing is not used
with legacy projects.
My goal is to encourage you to start testing.
Today I will present you the HOW TO part.
23. PhantomCSS: CSS regression
testing
PhantomCSS is good for detecting any visual
changes that are hard to sample using scripts.
Only do screenshot parts of the page.
Otherwise, the change in the footer will fail
every single page test in the test suite.
24. PhantomCSS: CSS regression
testing
Increasing number of screenshots can get large
for GIT. Use another GIT repo for them or look
up solutions offered in:
https://github.com/Huddle/PhantomCSS
25. PhantomCSS: CSS regression
testing
Use PhantomCSS only for design testing and
only where it is needed.
Otherwise, screenshot diff collision madness
will occur in your team (:
27. Summary for Legacy Projects
Isolate project’s testing version locally on a
separate vhost and a separate DB.
Write a script that prepares project for testing.
E. g. loads testing data for DB.
Start with highest level tests shown today.
28. Summary for Legacy Projects
Later, try out your Framework testing
functionality for Unit testing. You will need it for
much faster and fine grained tests. Remember
to delete and rewrite crappy tests!
Experiment, acquire testing skills and
spread the success stories!