Welcome! Please see the
About
page for a little more info on how this works.
GitHub Login
All Activity
Questions
Unanswered
Tags
Ask a Question
About
Ask a Question
run tests in parallel on the jvm
0
votes
asked
Aug 16, 2016
in
test.check
by
jira
Goals
deterministic -- calling quick-check with parallel opts gives the same answer as without
-- we have to give up some determinism though, because I don't think we could reasonably
say that the {{reporter-fn}} will be called the same way every time, or even that
the {{:num-tests}} value returned should always be the same
does the best possible thing on the jvm w.r.t. things hanging
is it necessary to have some sort of dynamic var with a thread id or something similar,
so users can use it to coordinate usage of global resources? alternatively they could
use a {{ThreadLocal}} by hand, or a pool
Issues
Is this really worth it? The downside is it makes the API and impl of {{quick-check}} more complex, and arguably most use cases could be served by calling {{quick-check}} multiple times from separate threads; would a generic test-suite parallelizer do the job for most people?
request
jira
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jun 26, 2019
by
jira
Reference:
https://clojure.atlassian.net/browse/TCHECK-115
(reported by gfredericks)
Please
log in
or
register
to add a comment.
Welcome to Clojure Q&A, where you can ask questions and receive answers from members of the Clojure community.
Related questions
Bound tests and shrinks in time
test.check doesn't seem to have a macro for asynchronous tests
Why tools-deps downloads all deps again when i run the tests (locally and on CI)
Provide a mechanism for getting output from a test run after interrupting it.
Documentation improvement for clojure.walk, to note use of recursion that can easily blow the JVM stack
Categories
All categories
Clojure
(1.5k)
ClojureScript
(612)
ClojureCLR
(26)
Contrib libs
(725)
algo.generic
(3)
algo.monads
(4)
core.async
(112)
core.cache
(19)
core.contracts
(5)
core.logic
(66)
core.match
(44)
core.memoize
(8)
core.rrb-vector
(13)
core.typed
(33)
core.unify
(7)
data.avl
(1)
data.codec
(3)
data.csv
(12)
data.finger-tree
(1)
data.fressian
(6)
data.generators
(3)
data.int-map
(17)
data.json
(18)
data.priority-map
(4)
data.xml
(24)
data.zip
(4)
java.classpath
(2)
java.data
(12)
java.jdbc
(3)
java.jmx
(6)
math.combinatorics
(5)
math.numeric-tower
(1)
replicant
(0)
test.check
(45)
test.generative
(2)
tools.analyzer
(8)
tools.build
(29)
tools.cli
(7)
tools.deps
(120)
tools.deps.graph
(2)
tools.emitter.jvm
(7)
tools.gitlibs
(4)
tools.logging
(6)
tools.macro
(8)
tools.namespace
(29)
tools.reader
(11)
tools.tools
(2)
tools.trace
(5)
Tools
(74)
Meta
(19)
Other
(93)
...