Hello, I'm using JsUnit for my testing, and it's great. However, I'm confused as to the correct usage of the "fail" function. I tried doing the following: ...
Hi Amanda, ... Edward's JsUnit is throwing a JsUnitException instance. So you've to check in the catch statement for this type of object: try{ fail("Should...
I am new to Unit Testing and jsunit. Is there a tutorial site where I can learn how to apply jsunit to my ASP/Jscript application to achieve unit testing. ...
Other than the few examples on www.jsunit.net, there is no tutorial for JsUnit yet. However, I am in the process of writing what may turn out to be a short...
Hello together, How does the example "Test Runner Online" work on the server http://www.edwardh.com/jsunit/ ? What or witch steps does it need for to configure...
All you should need to do is download and unzip jsunit on a machine where it is exposed through a webserver. Then when accessing testRunner.html over HTTP,...
We generate some fairly complex HTML using our java servlet. I'm a long term junit user, but new to jsunit. Since it looks like you have to have the jsunit...
Yes, that's how I do it. I have a files called "testsForPageX.js", which contain a bunch of Test Functions for page X (a fragment of JavaScript). Then from...
function testAlpha() { info("Alpha 1") setValue("criteria","levelCount","2") setValue("criteria","itemCount", "1") info("Alpha 2") } When this test runs, I get...
The function is "inform", not "info". This has caused confusion a few times, so I'm going to add an "info" function to the next release. (It will just call...
Are suites not working at all for you, or is it just this particular one? What exact browser/platform are you running on? - Edward ... From: "dcorbin_work"...
It's just that one. I tried one from the tests, and it works fine. ... one? ... won't ... function" ... src="/home/dcorbin/projects/cms/Automate/target/we ...
I seem to have tremendous problems with timeouts. I have a page which loads by itself just fine. But when I try to run it in the TestRunner, all I get is a...
I get this in Mozilla (4 times) whenever I run a test. I thought I could correct it by changing where certain LINK tags are written out to have a type, but it...
I continue to have problems with my TestSuite, posted a week ago (or so). It just doesn't seem to run. Also, as I've tried to debug JsUnit (unsuccessfully),...
I attempted to run three of JSUnit 1.3.3 self tests on recent or new versions of 8 different browsers. The tests run were: jsUnitTestSuite.html, a basic check...
(shame!) It works. While trying to prepare the "sample test case", I ran across a few problems. 1) I had the path wrong for the TestPages 2) I had my...
I've been dabbling with JsUnit enough to get TDD going on my web applciation for the client-side. I know have a framework that will work well for me, I think,...
The observations of another user (not a JsUnit developer) ... I proposed adding an analog of the TestCase class while we were trying to get a resolution to...
Recently I added some features to JsUnit that I needed for some work I was doing. I think they're useful enough to warrant a new release soon. An early...
... I'll look for it when I have some time. Thanks. ... In JsUnit, according to the documentation, the executing one test method will effect the environment...