Skip to end of metadata
Go to start of metadata

Timeline describes the coupling between JigZaw test model and agile development methodology and related concepts as Continuous Integration (CI) and continuous production.

In other words, when should a certain group of tests be run and who is responsible for executing them.

Timeline builds on Multidimensional Test Categorization and provides a starting point and some guidelines. All projects are different, so finding one timeline that will fit all projects is obviously not possible.

Logical timeline

The logical timeline of a project may look something like the following:

  1. Developer push/commit code
  2. CI server compile and run tests
  3. CI server deploys artifacts to artifact repository
  4. Deployment artifact is installed in production

The steps may be different or more steps can be added. Both before and after each step tests and other verification measures can be applied.
Different actors are involved: Developer, CI server, tester

How to begin?

  1. Initially, run all tests as often as possible. All tests in the same group. All tests run both developer and CI server.
  2. When adding tests with special characteristics, consider adding a tag. Common test groups: slow, externalDatabase, dataDriven
  3. If it is inconvenient to run a certain group of tests before developer commit/push his/her code, consider excluding that group from the default test suite. The CI server should still run all tests.
  4. The CI server should run all tests, but when? After every commit if possible. If this takes too much time, consider running some tests later.

Example: concrete timeline

Full Size

Within each sprint

Actor When What Commandline example
Developer pre-commit Default test suite mvn clean install
CI server post-commit Default test suite + tests that require special environment mvn clean install -DdatabaseX -DjmsServerY
CI server Every hour Slow tests mvn clean install -DslowTests
CI server On-successful build deploy artifacts to artifact repository mvn deploy
CI server Nightly Deploy to a test environment &
run data-bound tests using data recorded from production
 
Developer End of sprint, before release compare technical debt/accidental complexity metrics with metrics from previous release  
Developer End of sprint release mvn release:prepare & mvn release:perform

Back to JigZaw Design Principles and Drivers

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.