dellcloudedge/barclamp-crowbar — pull request #164 by cloudedge (2012-08-23 04:35:33+00:00)
Title: Fix the BDD so all test pass and fix docs and units [1/5]

This checking reflects a major refactoring of the BDD system
to improve the relability of the test running system.

I greatly simplifed and modularized the test & feature methods
so that they shared code paths. This also means that the
test all features path has a try/catch block so it will not bomb
it just one test fails.

I have NOT yet tried to parallelize the tests for performance.

The nodes feature includes a setup/teardown step!

I also added to the documentation and fixed a unit test that
was incorrect.

crowbar_framework/BDD/Win7.bat | 1 +
crowbar_framework/BDD/barclamp_api.feature | 63 ------
crowbar_framework/BDD/barclamps.feature | 31 ---
crowbar_framework/BDD/bdd.erl | 144 ++++++++++-----
crowbar_framework/BDD/bdd_utils.erl | 159 +++-------------
crowbar_framework/BDD/bdd_webrat.erl | 44 ++---
crowbar_framework/BDD/bulk_edit.feature | 30 ---
crowbar_framework/BDD/crowbar.config | 4 +-
crowbar_framework/BDD/crowbar.erl | 22 +--
crowbar_framework/BDD/dashboard.feature | 11 -
crowbar_framework/BDD/default.config | 10 +
crowbar_framework/BDD/default.erl | 23 +++
crowbar_framework/BDD/documentation.feature | 45 -----
crowbar_framework/BDD/eurl.erl | 163 ++++++++++++++++
.../BDD/features/barclamp_api.feature | 63 ++++++
crowbar_framework/BDD/features/barclamps.feature | 31 +++
crowbar_framework/BDD/features/bulk_edit.feature | 30 +++
crowbar_framework/BDD/features/dashboard.feature | 11 +
.../BDD/features/documentation.feature | 45 +++++
crowbar_framework/BDD/features/navigation.feature | 78 ++++++++
crowbar_framework/BDD/features/nodes.feature | 62 ++++++
crowbar_framework/BDD/features/proposals.feature | 20 ++
crowbar_framework/BDD/features/scaffolds.feature | 196 +++++++++++++++++++
crowbar_framework/BDD/modules.feature | 66 -------
crowbar_framework/BDD/navigation.feature | 79 --------
crowbar_framework/BDD/nodes.erl | 33 +---
crowbar_framework/BDD/nodes.feature | 52 -----
crowbar_framework/BDD/proposals.feature | 20 --
crowbar_framework/BDD/scaffolds.feature | 196 -------------------
.../app/controllers/docs_controller.rb | 2 +-
.../app/views/layouts/doc_export.html.haml | 4 +
crowbar_framework/doc/crowbar.yml | 7 +
.../doc/default/crowbar/devguide/api.md | 8 +-
.../doc/default/crowbar/devguide/testing.md | 205 +-------------------
.../doc/default/crowbar/devguide/testing/bdd.md | 184 ++++++++++++++++++
.../default/crowbar/devguide/testing/devtool.md | 13 ++
.../doc/default/crowbar/devguide/testing/units.md | 14 ++
crowbar_framework/test/unit/group_model_test.rb | 4 +-
38 files changed, 1129 insertions(+), 1044 deletions(-)