#Clojure acceptance testing boilerplate for the clj-webdriver
Taken from Sean Corfield's blog post "Automated Browser-based Testing with Clojure".
##Requirements
- Leiningen 2.0.0 or higher
- Selenium Chrome Driver on your path if you wish to test with Chrome
##Install
git clone [email protected]:greywolve/clj-webdriver-boilerplate.git
cd clj-webdriver-boilerplate
lein deps
##Usage
To run all tests in a single browser session (much faster):
lein with-browser test
Otherwise just use lein test
To use in the REPL:
(use 'testsuite.core)
(use 'clojure.test)
(use 'clj-webdriver.taxi)
(browser-up)
(to "http://www.github.com")
There are two example tests in test/testsuite/
##Choose a different browser
Look in src/testsuite/core.clj
##More info
- clj-webdriver wiki
- Sean Corfield's blog post
##Credit
- Sean Corfield for showing his browser-testing setup
- Daniel Gregoire for the awesome clj-webdriver
- Robert Stuttaford for suggesting this :)