Testing multiple versions of your code with Ant and Maven
Did you face the problem that your code must work with 2 or more different versions of a different component? I did.
While I was developing version 3.2 of Mule’s Activiti module I need to check that it works with version Activiti 5.3 and 5.4 (and all the upcoming versions as these guys release every month!).
The steps I need to follow for each version are:
- Stop, clean and start Activiti server.
- Deploy some examples to the Activiti server.
- Run all the tests of my Maven project.
So I create a build file for these steps (you can see the full file here). Below I show the call to the maven script from ant:
Notice that the ant script receives a parameter called activiti.version that is passed to maven to select the version of their dependencies in the pom.xml file:
Hope you start to automate your testing across multiple versions soon!
_
_
May 2nd, 2011 at 8:25 am
[...] This release supports versions 5.3 and 5.4 of Activiti and it works with Mule 3.x. Also, as part of this release we have automate the test certification for a new version of Activiti (as these guys release every month! ) using an approach with Ant and Maven. [...]
January 22nd, 2012 at 3:16 pm
Thanks for you post. By the way I came across Mockito Mock Forum and found it is exclusively for Unit Testing, Automated testing and Testing frameworks. This wil be of great help to people around here!!