Getting Tests Into Clojure

History Key

  • New content
  • Removed content

Recent Versions

Choose two versions to compare, or click the link to view it.

  1. 5. about 1 year by stuart.halloway
  2. 4. almost 3 years by stuart.halloway
  3. 3. almost 3 years by stuart.halloway
  4. 2. almost 3 years by stuart.halloway
  5. 1. almost 3 years by stuart.halloway
 

Read this first!

Clojure issue tracking now lives at http://dev.clojure.org/jira, and the wiki is at http://dev.clojure.org. These Assembla pages are kept online for historical interest only.

Unit Tests for Clojure

I have created forks of Clojure and Contrib that move Clojure's tests into the Clojure repos:

http://github.com/stuarthalloway/clojure/tree/gtic
http://github.com/stuarthalloway/clojure-contrib/tree/gtic

This brings the following dependencies into Clojure:

* clojure.contrib.test-is becomes clojure.test
* clojure.contrib.stacktrace becomes clojure.stacktrace
* clojure.contrib.template becomes clojure.template
* clojure.contrib.walk becomes clojure.walk

The name changes will break users of contrib, but will be limited to changing namespace names in use, require, etc. The following commits have all tests passing both branches (for me locally) and are ready for review, and hopefully for merge back into the definitive repositories:

* http://github.com/stuarthalloway/clojure/commit/6ee62ec1d88383e1caadb8b93a19fd389c001061

* http://github.com/stuarthalloway/clojure-contrib/commit/4f2c7bb5cf6828eb710fd18b603828ab295d0fa5

Also, I removed a few tests to avoid dependencies on the following libraries. The links are to the individual commits so you can see what tests were lost:

* java-utils [1]
* combinatorics [2]

[1] http://github.com/stuarthalloway/clojure/commit/62e0e4f6ee1e74f90c0c11c02bc88b950067a36d

[2] http://github.com/stuarthalloway/clojure/commit/30ef397b0c3cac1a62f70fe84315b7f0e2505b89