Jump to: navigation, search

Difference between revisions of "EDT:Running Tests"

(org.eclipse.edt.eunit.test)
Line 1: Line 1:
 +
= Running the EDT Tests =
 +
 
== org.eclipse.edt.tests.validation  ==
 
== org.eclipse.edt.tests.validation  ==
 
This project holds JUnit tests that are designed to test the part binding, validation and IR serialization phase (no generation is performed). To run these tests, you need to load the project (org.eclipse.edt.tests.validation). Then, right click on the application in the Project Explorer Or Navigator and select "Run as -> JUnit test". All tests should run with no errors or failures.
 
This project holds JUnit tests that are designed to test the part binding, validation and IR serialization phase (no generation is performed). To run these tests, you need to load the project (org.eclipse.edt.tests.validation). Then, right click on the application in the Project Explorer Or Navigator and select "Run as -> JUnit test". All tests should run with no errors or failures.

Revision as of 12:18, 9 January 2013

Running the EDT Tests

org.eclipse.edt.tests.validation

This project holds JUnit tests that are designed to test the part binding, validation and IR serialization phase (no generation is performed). To run these tests, you need to load the project (org.eclipse.edt.tests.validation). Then, right click on the application in the Project Explorer Or Navigator and select "Run as -> JUnit test". All tests should run with no errors or failures.

org.eclipse.edt.eunit.test

This contains a large number of tests that use the EUnit framework (see http://wiki.eclipse.org/EDT:EUnit_Testing) to test our core language features. To run this test, load the project (org.eclipse.edt.eunit.test). You will then need to set up the compiler(s) you wish to use for the project. To do this, right click on the project in the Project Explorer and select properties. Then click on "EGL Compiler" on the properties page. Select the Java and/or JavaScript generator, depending on what is being tested and press OK. One compilation completes, right click on the project and select "Generate EGL Test Driver". Select either Java or JavaScript (depending on which environment you are testing). Once the test driver is generated, you can run the tests. Refer to http://wiki.eclipse.org/EDT:EUnit_Testing#How_to_run_tests_using_EUnit and the subsequent sections on how to run the tests and analyze the results.