What testing library people use here?

50 views
Skip to first unread message

Mayank Jain

unread,
Jun 14, 2013, 5:38:30 AM6/14/13
to clj-we...@googlegroups.com
Hi,

I was wondering what testing library people use here with clj-webdriver.
While there are some nice libraries like midje, expectations etc, they seemed to me more oriented around unit testing and running tests continuously.

Can others share how they are testing?
What libraries, methods, ideas etc they use for it?

My main concern is :
* I should be able to integrate my tests with some CI.
* I should be able to run my tests from command line as well as from run time.
* Tests should be able to run on various set of parameters. I should be able to pass these parameters via command line or directly to a given function.
* Data should be separated from the functions that drive the tests.
* I should be able to run all my tests in parallel on Sauce labs with different values.
* All actions should be logged by default.

If anyone feels there is something already existing, please do share the link to it.
Looking forward to your responses.

Thanks.
Regards,
Mayank.

Sean Corfield

unread,
Jun 14, 2013, 3:18:44 PM6/14/13
to clj-we...@googlegroups.com
Expectations is hard to use with clj-webdriver because it
automatically runs all the tests at JVM shutdown and it's awkward to
graft side-effecty stuff into the workflow. We use Expectations for
everything _except_ our webdriver stuff, for which we use plain ol'
clojure.test. We run our tests from ant - and thus it's CI-ready and
also command line ready (lein test). Each test is a series of
webdriver calls with `is` assertions interspersed as needed to verify
correct UI results (and sometimes we reach into the server side to
verify side effects).

Sean
> --
> You received this message because you are subscribed to the Google Groups
> "clj-webdriver" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to clj-webdrive...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)
Reply all
Reply to author
Forward
0 new messages