Before you run the DRT, follow these steps to ensure that you are able to build with the latest sources:
To run the DRT, follow these steps:
If the DRT fails, you'll see error information output to the command prompt, including the nature of the error, the point in the test where it occurred, the line of code on which it occurred, and the name of an HTML file, written to the <labkey-home>/test/build/logs directory, which shows the state of the test at the time that it failed. You can open this HTML file to glean clues about what action the test was trying to perform when it failed.
You can add to or modify existing DRT tests and create new tests. To build your changes, use the ant compile target. You can also set up a run/debug configuration in IntelliJ to build and debug changes to the DRT.
To edit an existing DRT test, locate the test class beneath the <labkey-home>/test/src directory.
To create a new test, extend the BaseWebTest class, and add the name of your new class to the TestSet enum in TestSet.java.
Make sure that you test any changes you make to the DRT carefully before checking them in.
Once you pass the DRT successfully, you can check in your code. Make sure that you have updated your enlistment to include any recent changes checked in by other developers. To determine which files to check in, call the svn commit command. This command displays a list of the files that you have modified, which you can compare to the repository version. Be sure to provide a log message with your check-in so that other developers can easily ascertain what you have changed. An automated email describing your check-in is immediately sent to all who have access to the LabKey Server source project.
After you check in, our automated tools will also build the complete sources and run the full DRT as an independent verification, on all of the supported databases. You'll receive another email from the automated system letting you know whether the independent verification passed or failed. We request that you remain available by email from the time you check in until you receive the email confirming that the automated build and test suite has passed successfully, so that if there is a problem with your check-in, you can revert your change or check in a fix and minimize the amount of time that others are blocked.
If the automated test suite fails, all developers must halt check-ins until the problem is remedied and the test suite runs successfully. At that time the tree is once again open for check-ins.