Technology

How we chose a testing framework: Part 1

Go Back
Leigh Mardon

Reading time: 2 minutes

At blubolt, quality is of paramount importance. Not only is it a responsibility to users of our eCommerce platform, bluCommerce, but it’s also our pride and culture to build something with the knowledge that it will serve our users in the best possible way.

A big part of quality assurance is ensuring appropriate testing procedures are in place. Up until now, this has been a manual process within the development and release process (as well as regular additional testing through our partners), but in order to increase our pipeline efficiency and move one step closer to continuous delivery, we’ve been looking at automating more of our testing.

Acceptance testing is what we focused on first. Our existing manual testing targeted the end user, so it made sense to pick up from there.

As everyone in our development team is already familiar with PHP, it made sense to pick a PHP-based framework for bringing in automated testing. Codeception is a well-known testing framework that not only supports acceptance testing, but also other types of testing (functional testing, unit testing, etc.) and so it gives us room to expand on our testing processes in future.

For running the acceptance tests, Codeception offers several “drivers”, which can be useful depending on the level of interactivity required when running the tests.

We opted to run PhantomJS as a daemon on our standard development Vagrant setup. Performance was a massive factor in that decision, especially given the way testing fits in with our development process and how often the tests would need to be run (we ensure all tests successfully pass before any change can be pushed to the repo).

Running the test suite in a controlled Vagrant environment also ensures that any software dependencies (e.g. which version of PHP we’re running!) are properly met.

Setting up the framework for running the tests is just the beginning. In the next post in this series, we’ll look at writing the tests themselves!

Sign up for our monthly blubolt email!

For eCommerce news, product updates, & great insights!

See how we can help your brand grow!

We'd love the opportunity to show you how we are the right partner for your eCommerce success! In an initial 15 minute phone call, we'll walk you through:

  • Platform: How our eCommerce platform, bluCommerce, can meet your current and future objectives with its' best-of-breed feature set and integrations.
  • Design: How our world-class creative and build process works to perfectly represent your brand to your customers.
  • Service: How we support your growth every step of the way with a dedicated Customer Success and Technical Support team.

Simply fill out the form below, call us on 01225 580 037, or email info@blubolt.com and we'll schedule a suitable time with you.

We're on a mission to help raise awareness about bowel cancer

Learn about our charity partnership