Test Environments for Modern Web Apps

Chicago Perl Mongers
Chicago Perl Mongers
Public group


111 W. Jackson Blvd, Suite 1600 · Chicago, IL

How to find us

Check in at the front desk. If you arrive after 7:00pm, please call 312-241-8518 to get access to the building.

Location image of event venue


This month, William Lindley (http://www.wlindley.com) (Blog (http://blog.wlindley.com), Github (https://github.com/lindleyw)) will talk about writing a test harness for modern Perl programs using Test::More (http://metacpan.org/pod/Test::More), Test::Mojo (http://mojolicious.org/perldoc/Test/Mojo) for the API, and DBIx::Temp (http://metacpan.org/pod/DBIx::Temp) for the database

Building, testing, and deploying actual systems is more complex than merely writing a program. Real testing often needs to be done against databases of known large or problematic datasets. A test environment cannot affect production data. Staging even minor changes, so we can preview and find errors before moving to production servers, can prevent expensive errors. The "best practices" in this field are relatively new and still changing, and we look at the first steps from "I built this mockup last night" by building the test suite for a simple database-driven file-upload service with Mojolicious (http://mojolicious.org).

William Lindley has been hacking computers (in the good sense) since 1977, a database advocate since dBase II and PostgreSQL-predecessor Ingres in the 1980s, a Perl monger since 1994, and a free-software promoter since first getting Linux to run XWindows in 1995.

If time permits, Doug Bell will show a simple way to mock JSON REST APIs for testing using Mojolicious.