How to reuse another project's test classes

If you would like to reuse a project's test classes from another project, you can add project("X").test.compile.target to the test.with clause of your project.

Example


define "A" do
  package(:jar)
end

define "B" do
  compile.with project("A")
  test.with project("A").test.compile.target  # <---- HERE
  package(:jar)
end