Skip to content

How to destroy tests and testing files

macourtney edited this page Sep 13, 2010 · 3 revisions

Added for version: 0.4
Updated for version: 0.7

Model Test Files

To destroy a model test called ‘message’ use:

lein conjure destroy model-test message

Destroy will delete the file named messge_model_test.clj in the test/unit/model directory.

To destroy the fixture ‘message’ use:

lein conjure destroy fixture message

Destroy will delete the file named ‘message.clj’ in the test/fixture directory.

View Test Files

To destroy a view unit test called ‘show’ associated with the controller ‘message’ use:

lein conjure destroy view-test message show

Destroy will delete the file named ‘show_view_test.clj’ in the test/unit/view/message directory.

Binding Test Files

To destroy a binding unit test called ‘show’ associated with the controller ‘message’ use:

lein conjure destroy binding-test message show

Destroy will delete the file named ‘show_binding_test.clj’ in the test/unit/binding/message directory.

Controller Test Files

To destroy a controller functional test for controller ‘message’ use:

lein conjure destroy controller-test message

Destroy will delete the file named ‘message_controller_test.clj’ in the test/functional directory.

Clone this wiki locally