Subscribe to RSS

Some rights reserved

Except where otherwise noted, content on this site is licensed under a Creative Commons License


blog‎ > ‎

RhinoRunner

posted Dec 26, 2009 4:08 PM by Davide Angelocola   [ updated Dec 27, 2009 4:14 AM ]
During my thesis work I'm slowly creating a very small functional JavaScript library.  I write a lot of JavaScript these days and I write many bugs too. I want a nice integration with my IDE of choices for running unit tests for JS (no, HTML with tests inside is not a viable solution for me):


Leveraring JUnit's API I created a very simple RhinoRunner. It is very simple to use, yet not perfect:

import org.junit.runner.RunWith;

@RunWith(RhinoRunner.class)
@JavaScriptSourceFile("src/test/javascript/LambdaScriptTest.js")
public class LambdaScriptTest {
}