Skip to content
frawa edited this page May 3, 2012 · 10 revisions

UNDER CONSTRUCTION

Test Driven Development (TDD)

This page describes a setup suited for TDD, using Eclipse JSDT and Chrome Development Tools for remote debugging.

Prepare Eclipse

Prerequisits

  • Download Eclipse, for example the Eclipse IDE for JavaScript Web Developers

  • Install 'Eclipse EGit', from http://download.eclipse.org/egit/updates

  • Install all in 'Google Chrome Developer Tools', from http://chromedevtools.googlecode.com/svn/update/dev/

  • Install 'JS Test Driver', from http://js-test-driver.googlecode.com/svn/update/

  • Optional, install 'm2e - Maven integration for Eclipse', from http://download.eclipse.org/technology/m2e/releases/. This requires the JDT feature.

Import project

Use Import wizard

  • Import Project > Git > Projects from Git > URI
  • git://github.com/frawa/TestCodeMirror2.git
  • select only 'master' branch
  • import as General project

Configure JSDT

In the Script Explorer, right click the new project and select 'Configure > Convert to JavaScript project'

Configure chromedevtools

Discover launch configurations

Connect Chrome to JSTestDriver in remote debugging mode

Connect Eclipse to Chrome for debugging

TDD

Setting breakpoints

Debugging

Clone this wiki locally