Skip to content

Commit

Permalink
doc updates for BDD testing units
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Hirschfeld committed Jan 13, 2013
1 parent 57a65ee commit e70a90e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions doc/devguide/testing/devtool.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ The following commands work for Unix environments:
1. `./dev run-unit-tests` # executes the chef-spec, unit tests and BDD tests
1. `./dev clear-unit-tests` # Removes the /tmp/crowbar-dev-test environment

For debugging, the /tmp/crowbar-dev-test/crowbar_framework environment can be used as a rails app. The server can be run by running:
* `script/rails s Puma`
For debugging, the `/tmp/crowbar-dev-test/crowbar_framework` environment can be used as a rails app.

The crowbar webserver can be run by running:
* `bundle exec rails s`

You must do this if you want to debug the BDD tests! Once the server is running on localhost, you can run the BDD tests interactively from erlang (`erl`) in from the code area (not just the test area) using commands like `bdd:test(crowbar).` and `bdd:debug(crowbar, myfeature, mytestid, debug).`

> Note: only the `crowbar-dev-test` area will have all the tests available because of the barclamp rollup.

0 comments on commit e70a90e

Please sign in to comment.