Clojure acceptance testing boilerplate for the excellent clj-webdriver library. Get your acceptance tests running already!
Clojure Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
script
src/clj_webdriver_boilerplate
tasks/leiningen
test/clj_webdriver_boilerplate
.gitignore
.lein-classpath
LICENSE
README.md
project.clj

README.md

Clojure acceptance testing boilerplate for the clj-webdriver

Taken from Sean Corfield's blog post "Automated Browser-based Testing with Clojure".

Requirements

Install

git clone git@github.com: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 'clj-webdriver-boilerplate.core)
(use 'clojure.test)
(use 'clj-webdriver.taxi)
(browser-up)
(to "http://www.github.com")

There are two example tests in test/clj-webdriver-boilerplate/.

Choose a different browser

Look in src/clj-webdriver-boilerplate/core.clj.

More info

Credit