Clojure

Provide a clojure.test function to run a single test case with fixtures

Details

  • Type: Enhancement Enhancement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: Release 1.6
  • Component/s: None
  • Labels:
  • Patch:
    Code and Test
  • Approval:
    Ok

Description

clojure.test test cases are functions and can be invoked directly. However, in the case that the test relies on fixtures, this does not work. It should be possible to run a single test case with all fixtures applied.

Approach: Add new test-vars that takes a collection of vars to run.

Patch: code: clj-866-test-vars.patch, test: CLJ-866-test.patch

Screened by: Alex Miller

  1. CLJ-866-test.patch
    03/Aug/13 3:35 PM
    2 kB
    Gary Fredericks
  2. clj-866-test-vars.patch
    22/Oct/12 6:09 PM
    2 kB
    Anthony Grimes

Activity

Anthony Grimes made changes -
Field Original Value New Value
Attachment clj-866-test-vars.patch [ 11602 ]
Anthony Grimes made changes -
Patch Code [ 10001 ]
Rich Hickey made changes -
Approval Vetted [ 10003 ]
Rich Hickey made changes -
Fix Version/s Release 1.6 [ 10157 ]
Alex Miller made changes -
Approval Vetted [ 10003 ] Incomplete [ 10006 ]
Assignee Anthony Grimes [ anthonygrimes ]
Alex Miller made changes -
Waiting On anthonygrimes
Gary Fredericks made changes -
Attachment CLJ-866-test.patch [ 12093 ]
Alex Miller made changes -
Approval Incomplete [ 10006 ] Vetted [ 10003 ]
Alex Miller made changes -
Assignee Anthony Grimes [ anthonygrimes ]
Alex Miller made changes -
Waiting On anthonygrimes
Alex Miller made changes -
Patch Code [ 10001 ] Code and Test [ 10002 ]
Description At present, clojure.test test cases are functions and can be invoked directly. However, in the case that the test relies on fixtures, this does not work. Please provide a function that can run a single test case with all fixtures applied. clojure.test test cases are functions and can be invoked directly. However, in the case that the test relies on fixtures, this does not work. It should be possible to run a single test case with all fixtures applied.

*Approach:* Add new test-vars that takes a collection of vars to run.

*Patch:* code: {{clj-866-test-vars.patch}}, test: {{CLJ-866-test.patch}}
Alex Miller made changes -
Labels clojure.test
Alex Miller made changes -
Approval Vetted [ 10003 ] Screened [ 10004 ]
Description clojure.test test cases are functions and can be invoked directly. However, in the case that the test relies on fixtures, this does not work. It should be possible to run a single test case with all fixtures applied.

*Approach:* Add new test-vars that takes a collection of vars to run.

*Patch:* code: {{clj-866-test-vars.patch}}, test: {{CLJ-866-test.patch}}
clojure.test test cases are functions and can be invoked directly. However, in the case that the test relies on fixtures, this does not work. It should be possible to run a single test case with all fixtures applied.

*Approach:* Add new test-vars that takes a collection of vars to run.

*Patch:* code: clj-866-test-vars.patch, test: CLJ-866-test.patch

*Screened by:* Alex Miller
Rich Hickey made changes -
Approval Screened [ 10004 ] Ok [ 10007 ]
Stuart Halloway made changes -
Resolution Completed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]

People

Vote (11)
Watch (8)

Dates

  • Created:
    Updated:
    Resolved: