Tag: Integration Testing
Dockunit.io Beta Launch
Dockunit.io has officially launched in beta. Dockunit.io lets you run containerized continuous integration tests with the Dockunit tool. With Dockunit.io you can test your software (in any programming language) in environments (containers) you define. You can configure your software to be tested across a number of environments ensuring your software just works for people no…
Dockunit: Containerized Unit Testing Across Any Platform and Programming Language
Problem: I want my application to work on all the environments I claim to support but I have no way of easily testing updates in each environment. Bad Solution: Continuously push to your remote to force Travis CI to test changes in multiple environments. Good Solution: Containerized unit testing with Dockunit. Dockunit is a simple…
Using the WordPress JSON REST API in Testing Suites with Travis CI
Problem: We are writing custom endpoints and routes that extend WP API in a theme or plugin. We want to write tests for this code and run tests in Travis CI. Right now, WP API is not in WordPress core and must be included as a plugin. Therefore, we have a WordPress plugin/theme that depends…
WP_UnitTestCase: The Hidden API
Background: Unit testing is the automated testing of units of source code against assumptions. The goal of unit testing is to write test cases with assumptions that test if a unit of code is truly working as intended. If an assumption fails, a potential issue is exposed, and code needs to be revised. By definition…