Running the Unit Test Suite

Running the unit tests helps verify that your install is working properly.  However, it needs special test data loaded in order to run properly.  This data is for testing and demonstration purposes only;  it is not meant for a production environment.

To load the demonstration data:

1.

Set up a fresh unit test database using the schema provided by KC.

2.

 

 

 

 

 

 

 

 

 

Go to db_scripts/demo-data and run the following three scripts in order against your database:

For Oracle:

    KR-RELEASE-3_1-Demo-ORACLE.sql

    KRC-RELEASE-3_1-Demo-ORACLE.sql

    KC-RELEASE-3_1-Demo-ORACLE.sql

For MySQL:

    KR-RELEASE-3_1-Demo-MYSQL.sql

    KRC-RELEASE-3_1-Demo- MYSQL.sql

    KC-RELEASE-3_1-Demo- MYSQL.sql

End of activity.

 

To run the unit test suite:

1.

Set up a unit test database using the schema provided by KC.

Note:  The schema should not contain any data.

2.

Create a configuration file (see /kc_project/src/main/config/userhome/kuali/test/dev/kc-test-config.xml.template).

3.

Place a configuration file in <userhome>//kuali/test/dev/kc-test-config.xml.

4.

Run the junit suite org.kuali.kra.triage.suite.PassSuite.

Note:  This can be done either through maven or with the eclipse launch file (KC - PassSuite.launch).

 End of activity.