|
|
Version 0.8.0 Alpha
|
|
|
Portal to the Milescript open-source development community.
|
In this tutorial, we will create a unit test in the project we created in the Using the Milescript Eclipse Plugin Tutorial.
If you haven't already completed the Using the Milescript Eclipse Plugin Tutorial, please do so first and then continue from here.
|
Open Eclipse and make sure the "Milescript View" is visible.
We're going to a few libraries in this tutorial so the first thing we'll do is add them to the project.
Right click on the "HelloWorld" project we created in the Using the Milescript Eclipse Plugin Tutorial and select properties.
|
|
Select the Milesript properties panel and click the "Add MAR Lib" button.
Select "libcrosscheck.mar", "libutil.mar", and "libdom.mar" from the list and press "Ok."
Verify that the Milescript properties panel looks like this and press "Ok."
|
|
Now we're going to add some code to the TestMain class.
Edit your TestMain class so it looks like the following...
|
|
Now right click on the MilescriptTestSuites project and select "Run as JUnit."
|
|
Congratulations, you just ran your first unit test in MSEclipse. Check the Documentation page for more tutorials.
|
|
|
|
|
|