Version 0.8.0 Alpha

Quickly produce robust, reusable client-side code for any browser.

Easily interface with legacy Javascript using external classes.

Utilize any server-side framework available to Javascript.

Portal to the Milescript open-source development community.

AddThis Social Bookmark Button
Stumble It! StumbleUpon Toolbar
Digg It!
Del.icio.us

Unit Tests in MSEclipse

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.

About | Contact
Milescript is an open source project released under the Apache 2 license.
Copyright © 2007, Point5u, LLC. All rights reserved. Images, layout, text, and other design elements may not be used without permission. The Milescript brand, logo, and slogan are trademarks of Point5u, LLC and may not be used in any way without permission.