The Open Anzo Project

Semantic Application Middleware

Ticket #43 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Add anzo-js JavaScript unit tests to the Maven build

Reported by: jordi Assigned to: jordi
Priority: major Milestone: 3.0 milestone1
Component: openanzo-js Version: 2.5
Keywords: build Cc:

Description

anzo-js has unit tests which run on Dojo's D.O.H. framework.

These should be running in the Maven build so that the autobuild runs them. D.O.H. can run inside Rhino. Of course, any tests running in Rhino can't manipulate a DOM but we shouldn't use unit tests for that (or the test should supply a fake DOM). We'll use another tool (like perhaps Selenium) for presentation tests.

Change History

10/11/07 17:11:42 changed by jordi

(In [511]) Remove the release build version of dojo-0.9. I'll replace this soon with the 'source' version. I'm making this change because the Rhino command line unit test harness does not work with the release build version. This partially addresses #43, reviewer rmeschian.

10/11/07 20:39:03 changed by jordi

(In [515]) Restoring tests now that dojo was added back in r513. By adding the testUrl parameter to the runTests.html file, we can register the anzo module with the Dojo loader. This avoids actually patching the dojo runner.html which we were previsouly doing. This further addresses #43, reviewer rmeschian.

10/11/07 20:42:47 changed by jordi

  • status changed from new to assigned.

Not sure why this didn't get automatically added so adding it manually:

(In [513]) Import the Dojo-0.9 source distribution. We'll need the source distro for doing combined builds of it with anzo-js and for running the command line JavaScript unit tests. This addresses #43, reviewer rmeschian. I still must adjust some things to get the tests finding the anzo modules but this is progress.

10/12/07 12:07:36 changed by jordi

  • status changed from assigned to closed.
  • resolution set to fixed.

(In [517]) Add JavaScript? unit tests to the Maven build. This fixes #43, reviewer rmeschian. Improvements could be made such that the unit tests are reported in a way that CruiseControl will understand them. But we'll leave that for later.

10/12/07 12:39:23 changed by jordi

  • status changed from closed to reopened.
  • resolution deleted.

10/12/07 12:40:15 changed by jordi

(In [518]) Revert the change from r516. We don't need to modify Dojo source to register the anzo modules. We use the testUrl parameter to the D.O.H. tools and the repareAnzo.js file instead. addresses #43, reviewer rmeschian.

10/12/07 12:40:54 changed by jordi

  • status changed from reopened to closed.
  • resolution set to fixed.

10/18/07 17:25:18 changed by jpbetz

  • milestone changed from 2.5beta2 to 3.0 milestone1.

Milestone 2.5beta2 deleted

Copyright © 2007 - 2008 OpenAnzo.org