Skip to content
msuarz edited this page Jan 17, 2013 · 6 revisions

These are a minimal set of step to setup fitnesse, decaf and run a simple test.

Fitnesse

Create a folder eg:c:\temp\fitnesse
Download fitnesse.jar from fitnesse.org into c:\temp\fitnesse
Run java -jar fitnesse.jar -o -e 0 -p 8080 from c:\temp\fitnesse (more options ...)

Decaf

Install Decaf npm install -g decaf
Point your browser to http://localhost:8080/root?edit and type

!define TEST_SYSTEM {slim}
!define COMMAND_PATTERN {decaf.cmd %p}
!path fixtures

Greeter fixture

Create a folder for the fixtures c:\temp\fitnesse\fixtures
Add a greeter.coffee with content

class @Greeter
  hello: (who) -> "Hello #{who}!"

Hello Decaf Test

Point your browser to http://localhost:8080/HelloDecafTest and type

|import|
|greeter|

|script|Greeter|
|check|hello|Decaf|Hello Decaf!|

Save the test and run it, Hello Decaf! should go green.

Clone this wiki locally