Running Test framework as part of application
Posted
by VP
on Stack Overflow
See other posts from Stack Overflow
or by VP
Published on 2010-06-07T16:08:51Z
Indexed on
2010/06/07
16:12 UTC
Read the original article
Hit count: 147
ruby-on-rails
Hi,
I would like to know if it is possible in rails to run some test cases through my application. I mean, i want show the test results to users. So i was thinking to be able to call my tests through a controller and put the tests output in a dialog. Imagine that i'm doing an application where before to apply a rule, i want to run some validation tests. I could write methods in my rule model to do it, but i would like to use something like shoulda or any other kind of DSL where the "fixture" would be a record itself. Any tip or idea?
© Stack Overflow or respective owner