{"action":"created","issue":{"url":"https://api.github.com/repos/cbeust/kobalt/issues/251","repository_url":"https://api.github.com/repos/cbeust/kobalt","labels_url":"https://api.github.com/repos/cbeust/kobalt/issues/251/labels{/name}","comments_url":"https://api.github.com/repos/cbeust/kobalt/issues/251/comments","events_url":"https://api.github.com/repos/cbeust/kobalt/issues/251/events","html_url":"https://github.com/cbeust/kobalt/issues/251","id":163259369,"number":251,"title":"Issues with using junit","user":{"login":"kyonifer","id":980312,"avatar_url":"https://avatars.githubusercontent.com/u/980312?v=3","gravatar_id":"","url":"https://api.github.com/users/kyonifer","html_url":"https://github.com/kyonifer","followers_url":"https://api.github.com/users/kyonifer/followers","following_url":"https://api.github.com/users/kyonifer/following{/other_user}","gists_url":"https://api.github.com/users/kyonifer/gists{/gist_id}","starred_url":"https://api.github.com/users/kyonifer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyonifer/subscriptions","organizations_url":"https://api.github.com/users/kyonifer/orgs","repos_url":"https://api.github.com/users/kyonifer/repos","events_url":"https://api.github.com/users/kyonifer/events{/privacy}","received_events_url":"https://api.github.com/users/kyonifer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-06-30T20:26:40Z","updated_at":"2016-07-13T15:23:54Z","closed_at":null,"body":"I was playing around with kobalt to see if I could use it for my kotlin lib (https://github.com/kyonifer/golem/tree/kobalt). Using the intellij kobalt plugin works fine for running all the tests, as does \"gradle test\" on the version in master. However, when I try to run my junit tests from the command line with \"kobalt test\" it fails with (snipped):\r\n\r\n```\r\n...\r\njava.lang.Exception: No runnable methods\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.validateInstanceMethods(BlockJUnit4ClassRunner.java:191)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.collectInitializationErrors(BlockJUnit4ClassRunner.java:128)\r\n\tat org.junit.runners.ParentRunner.validate(ParentRunner.java:416)\r\n\tat org.junit.runners.ParentRunner.<init>(ParentRunner.java:84)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.<init>(BlockJUnit4ClassRunner.java:65)\r\n\tat org.junit.internal.builders.JUnit4Builder.runnerForClass(JUnit4Builder.java:10)\r\n\tat org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)\r\n\tat org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)\r\n\tat org.junit.runner.Computer.getRunner(Computer.java:40)\r\n\tat org.junit.runner.Computer$1.runnerForClass(Computer.java:31)\r\n\tat org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)\r\n\tat org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:101)\r\n\tat org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:87)\r\n\tat org.junit.runners.Suite.<init>(Suite.java:81)\r\n\tat org.junit.runner.Computer.getSuite(Computer.java:28)\r\n\tat org.junit.runner.Request.classes(Request.java:75)\r\n\tat org.junit.runner.JUnitCommandLineParseResult.createRequest(JUnitCommandLineParseResult.java:118)\r\n\tat org.junit.runner.JUnitCore.runMain(JUnitCore.java:77)\r\n\tat org.junit.runner.JUnitCore.main(JUnitCore.java:36)\r\n600) initializationError(golem.util.test.UtilTests$assertMatrixEquals$1)\r\njava.lang.Exception: The class golem.util.test.UtilTests$assertMatrixEquals$1 is not public.\r\n\tat org.junit.validator.PublicClassValidator.validateTestClass(PublicClassValidator.java:29)\r\n\tat org.junit.runners.ParentRunner.applyValidators(ParentRunner.java:134)\r\n\tat org.junit.runners.ParentRunner.collectInitializationErrors(ParentRunner.java:128)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.collectInitializationErrors(BlockJUnit4ClassRunner.java:124)\r\n\tat org.junit.runners.ParentRunner.validate(ParentRunner.java:416)\r\n\tat org.junit.runners.ParentRunner.<init>(ParentRunner.java:84)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.<init>(BlockJUnit4ClassRunner.java:65)\r\n\tat org.junit.internal.builders.JUnit4Builder.runnerForClass(JUnit4Builder.java:10)\r\n\tat org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)\r\n\tat org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)\r\n\tat org.junit.runner.Computer.getRunner(Computer.java:40)\r\n\tat org.junit.runner.Computer$1.runnerForClass(Computer.java:31)\r\n\tat org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)\r\n\tat org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:101)\r\n\tat org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:87)\r\n\tat org.junit.runners.Suite.<init>(Suite.java:81)\r\n\tat org.junit.runner.Computer.getSuite(Computer.java:28)\r\n\tat org.junit.runner.Request.classes(Request.java:75)\r\n\tat org.junit.runner.JUnitCommandLineParseResult.createRequest(JUnitCommandLineParseResult.java:118)\r\n\tat org.junit.runner.JUnitCore.runMain(JUnitCore.java:77)\r\n\tat org.junit.runner.JUnitCore.main(JUnitCore.java:36)\r\n601) initializationError(golem.util.test.UtilTests$assertMatrixEquals$1)\r\njava.lang.Exception: Test class should have exactly one public constructor\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.validateOnlyOneConstructor(BlockJUnit4ClassRunner.java:158)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.validateConstructor(BlockJUnit4ClassRunner.java:147)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.collectInitializationErrors(BlockJUnit4ClassRunner.java:127)\r\n\tat org.junit.runners.ParentRunner.validate(ParentRunner.java:416)\r\n\tat org.junit.runners.ParentRunner.<init>(ParentRunner.java:84)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.<init>(BlockJUnit4ClassRunner.java:65)\r\n\tat org.junit.internal.builders.JUnit4Builder.runnerForClass(JUnit4Builder.java:10)\r\n\tat org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)\r\n\tat org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)\r\n\tat org.junit.runner.Computer.getRunner(Computer.java:40)\r\n\tat org.junit.runner.Computer$1.runnerForClass(Computer.java:31)\r\n\tat org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)\r\n\tat org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:101)\r\n\tat org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:87)\r\n\tat org.junit.runners.Suite.<init>(Suite.java:81)\r\n\tat org.junit.runner.Computer.getSuite(Computer.java:28)\r\n\tat org.junit.runner.Request.classes(Request.java:75)\r\n\tat org.junit.runner.JUnitCommandLineParseResult.createRequest(JUnitCommandLineParseResult.java:118)\r\n\tat org.junit.runner.JUnitCore.runMain(JUnitCore.java:77)\r\n\tat org.junit.runner.JUnitCore.main(JUnitCore.java:36)\r\n602) initializationError(golem.util.test.UtilTests$assertMatrixEquals$1)\r\njava.lang.Exception: No runnable methods\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.validateInstanceMethods(BlockJUnit4ClassRunner.java:191)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.collectInitializationErrors(BlockJUnit4ClassRunner.java:128)\r\n\tat org.junit.runners.ParentRunner.validate(ParentRunner.java:416)\r\n\tat org.junit.runners.ParentRunner.<init>(ParentRunner.java:84)\r\n\tat org.junit.runners.BlockJUnit4ClassRunner.<init>(BlockJUnit4ClassRunner.java:65)\r\n\tat org.junit.internal.builders.JUnit4Builder.runnerForClass(JUnit4Builder.java:10)\r\n\tat org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)\r\n\tat org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:26)\r\n\tat org.junit.runner.Computer.getRunner(Computer.java:40)\r\n\tat org.junit.runner.Computer$1.runnerForClass(Computer.java:31)\r\n\tat org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:59)\r\n\tat org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:101)\r\n\tat org.junit.runners.model.RunnerBuilder.runners(RunnerBuilder.java:87)\r\n\tat org.junit.runners.Suite.<init>(Suite.java:81)\r\n\tat org.junit.runner.Computer.getSuite(Computer.java:28)\r\n\tat org.junit.runner.Request.classes(Request.java:75)\r\n\tat org.junit.runner.JUnitCommandLineParseResult.createRequest(JUnitCommandLineParseResult.java:118)\r\n\tat org.junit.runner.JUnitCore.runMain(JUnitCore.java:77)\r\n\tat org.junit.runner.JUnitCore.main(JUnitCore.java:36)\r\n\r\nFAILURES!!!\r\nTests run: 689,  Failures: 602\r\n```\r\n\r\nBuild file im trying out with is https://github.com/kyonifer/golem/blob/kobalt/kobalt/src/Build.kt . Any ideas on what could be up?"},"comment":{"url":"https://api.github.com/repos/cbeust/kobalt/issues/comments/232390405","html_url":"https://github.com/cbeust/kobalt/issues/251#issuecomment-232390405","issue_url":"https://api.github.com/repos/cbeust/kobalt/issues/251","id":232390405,"user":{"login":"kyonifer","id":980312,"avatar_url":"https://avatars.githubusercontent.com/u/980312?v=3","gravatar_id":"","url":"https://api.github.com/users/kyonifer","html_url":"https://github.com/kyonifer","followers_url":"https://api.github.com/users/kyonifer/followers","following_url":"https://api.github.com/users/kyonifer/following{/other_user}","gists_url":"https://api.github.com/users/kyonifer/gists{/gist_id}","starred_url":"https://api.github.com/users/kyonifer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyonifer/subscriptions","organizations_url":"https://api.github.com/users/kyonifer/orgs","repos_url":"https://api.github.com/users/kyonifer/repos","events_url":"https://api.github.com/users/kyonifer/events{/privacy}","received_events_url":"https://api.github.com/users/kyonifer/received_events","type":"User","site_admin":false},"created_at":"2016-07-13T15:23:54Z","updated_at":"2016-07-13T15:23:54Z","body":"Looks like the latest breaks the tests again (it tries to run 689 tests instead of 87). Doing a binary search it appears again on 0.835, so probably a regression due to https://github.com/cbeust/kobalt/commit/4d23c1236bba30f2d745f9c51638bc2d85653f3e\r\n\r\nTo keep it apples-to-apples im testing on the original golem commit I opened the issue under, https://github.com/kyonifer/golem/commit/11cff9b5af8fd8c260880d726145a77b978e54c6. Latest golem-kobalt branch HEAD is doing some multiproject stuff and it also appears there."}}
{"actor":{"display_login":"kyonifer"}}