Details
-
Type:
New Feature
-
Status: Closed
-
Priority:
TBD
-
Resolution: Duplicate
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:
-
Complexity:Medium
Description
we need to add (to trunk) a suite of tests that can be launched from maven (or ant) that will script a browser to run through the tests listed at.
https://wiki.openmrs.org/display/docs/Testing+Releases
The framework for writing the tests has been created at the following location
https://github.com/zabil/openmrs
This uses a mysql embedded version and runs a standalone webapp while executing the tests.
download the mysql jar files form this location http://dev.mysql.com/downloads/connector/mxj/
You can follow the steps mentioned at http://svn.openmrs.org/openmrs-contrib/standalone/trunk/readme.txt to make the mysql jar files that you have downloaded maven aware
once you have the mysql jar files
$ git clone git://github.com/zabil/openmrs.git
$ git checkout releasetest
$ export MAVEN_OPTS="-Xmx512m -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled -XX:PermSize=64M -XX:MaxPermSize=128M"
$ mvn clean integration-test -DskipTests=true -P integration-test
This will run the tests which will install the openmrs application, create a patient and and observation
To see what the changes as a patch from the openmrs trunk
$ git diff master