java - Gradle not running tests -
for reason gradle not running tests. when execute gradle cleantest test -i
get:
skipping task ':compilejava' up-to-date (took 0.262 secs). :compilejava up-to-date :compilejava (thread[main,5,main]) completed. took 0.266 secs. :processresources (thread[main,5,main]) started. :processresources skipping task ':processresources' has no source files. :processresources up-to-date :processresources (thread[main,5,main]) completed. took 0.001 secs. :classes (thread[main,5,main]) started. :classes skipping task ':classes' has no actions. :classes up-to-date :classes (thread[main,5,main]) completed. took 0.0 secs. :compiletestjava (thread[main,5,main]) started. :compiletestjava skipping task ':compiletestjava' has no source files. :compiletestjava up-to-date :compiletestjava (thread[main,5,main]) completed. took 0.001 secs. :processtestresources (thread[main,5,main]) started. :processtestresources skipping task ':processtestresources' up-to-date (took 0.004 secs). :processtestresources up-to-date :processtestresources (thread[main,5,main]) completed. took 0.007 secs. :testclasses (thread[main,5,main]) started. :testclasses skipping task ':testclasses' has no actions. :testclasses up-to-date :testclasses (thread[main,5,main]) completed. took 0.001 secs. :test (thread[main,5,main]) started. :test file or directory '/users/jan/2014-2015-groep-05/vopro/build/classes/test', not found skipping task ':test' has no source files.
my test in folder ./test/
. , gradle config:
apply plugin: 'java' apply plugin: 'eclipse' test { testlogging { events "passed", "skipped", "failed", "standardout", "standarderror" } dependson 'cleantest' } repositories { mavencentral() } dependencies { testcompile("junit:junit") } sourcesets { main { java { srcdir 'src' srcdir 'test' } } }
i can't seem find problem is. gradle not recognize tests, since both test , cleantest date, did add test/ sourcesets.
you're saying main sourceset should contain test directory. directory should set in test sourceset.
Comments
Post a Comment