Skip to content

Wakaleo Consulting

  Resources Easyb code Samples
Easyb Code Samples E-mail
This is a simple Maven project designed to illustrate some of the features of the Easyb Behaviour-Driven Development framework. It will evolve with time and as new features of Easyb appear

You can check out the project source code from the Subversion repository here:

$ svn co https://wakaleo.devguard.com/svn/sample-code/easyb/onlinebank/onlinebank-core

You will find the Easyb test scripts in the src/test/easyb directory. To run the tests from Maven, simply run mvn test:

C:\Users\john\projects\sample-code\easyb\onlinebank\onlinebank-core>mvn test
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building onlinebank-core
[INFO]    task-segment: [test]
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 3 source files to C:\Users\john\projects\sample-code\easyb\onlinebank\onlinebank-co
re\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [easyb:test {execution: default}]
[INFO] Using easyb dependency org.easyb:easyb:jar:0.9:compile
[INFO] Using easyb dependency commons-cli:commons-cli:jar:1.1:compile
[INFO] Using easyb dependency org.codehaus.groovy:groovy-all-minimal:jar:1.5.0:compile
     [java] Running account deposits story (AccountDepositsStory.groovy)
     [java] Scenarios run: 2, Failures: 0, Pending: 0, Time Elapsed: 0.39 sec
     [java] Running account withdrawls story (AccountWithdrawlsStory.groovy)
     [java] Scenarios run: 2, Failures: 0, Pending: 0, Time Elapsed: 0.109 sec
     [java] Running open account specification (openAccount.specification)
     [java] Specifications run: 2, Failures: 0, Pending: 0, Time Elapsed: 0.033 sec
     [java] 6 total behaviors run with no failures
[INFO] [easyb:storyReport {execution: default}]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12 seconds
[INFO] Finished at: Wed Aug 13 09:52:34 NZST 2008
[INFO] Final Memory: 10M/18M
[INFO] ------------------------------------------------------------------------