{"action":"created","issue":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/2316","repository_url":"https://api.github.com/repos/scala-js/scala-js","labels_url":"https://api.github.com/repos/scala-js/scala-js/issues/2316/labels{/name}","comments_url":"https://api.github.com/repos/scala-js/scala-js/issues/2316/comments","events_url":"https://api.github.com/repos/scala-js/scala-js/issues/2316/events","html_url":"https://github.com/scala-js/scala-js/pull/2316","id":145294654,"number":2316,"title":"Add test detection JSON report with HTML runner.","user":{"login":"gzm0","id":1140323,"avatar_url":"https://avatars.githubusercontent.com/u/1140323?v=3","gravatar_id":"","url":"https://api.github.com/users/gzm0","html_url":"https://github.com/gzm0","followers_url":"https://api.github.com/users/gzm0/followers","following_url":"https://api.github.com/users/gzm0/following{/other_user}","gists_url":"https://api.github.com/users/gzm0/gists{/gist_id}","starred_url":"https://api.github.com/users/gzm0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gzm0/subscriptions","organizations_url":"https://api.github.com/users/gzm0/orgs","repos_url":"https://api.github.com/users/gzm0/repos","events_url":"https://api.github.com/users/gzm0/events{/privacy}","received_events_url":"https://api.github.com/users/gzm0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":19,"created_at":"2016-04-01T21:54:06Z","updated_at":"2016-04-14T08:48:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/scala-js/scala-js/pulls/2316","html_url":"https://github.com/scala-js/scala-js/pull/2316","diff_url":"https://github.com/scala-js/scala-js/pull/2316.diff","patch_url":"https://github.com/scala-js/scala-js/pull/2316.patch"},"body":"Test detection done on sbt side is now reported via JSON to the HTML\r\nrunner. The HTML runner is therefore fully agnostic to the exact\r\nScala.js testing framework that is in use.\r\nThe same principle is applied in the bootstrapping test.\r\n\r\nThis fixes #2248 (Run JUnit tests in HTML test-suite runner) and takes\r\nthe first steps towards #1709 (Provide an [outside facing] HTML runner\r\nfor tests).\r\n\r\nNot yet supported is picking up framework flags from sbt. This can be\r\neasily added by extending the mechanism if necessary.\r\n\r\nHTML runner looks like this:\r\n![HTML Runner Screenshot](https://cloud.githubusercontent.com/assets/1140323/14221118/e7d6e490-f864-11e5-8c71-15e529ccf9ee.png)\r\n"},"comment":{"url":"https://api.github.com/repos/scala-js/scala-js/issues/comments/209833657","html_url":"https://github.com/scala-js/scala-js/pull/2316#issuecomment-209833657","issue_url":"https://api.github.com/repos/scala-js/scala-js/issues/2316","id":209833657,"user":{"login":"gzm0","id":1140323,"avatar_url":"https://avatars.githubusercontent.com/u/1140323?v=3","gravatar_id":"","url":"https://api.github.com/users/gzm0","html_url":"https://github.com/gzm0","followers_url":"https://api.github.com/users/gzm0/followers","following_url":"https://api.github.com/users/gzm0/following{/other_user}","gists_url":"https://api.github.com/users/gzm0/gists{/gist_id}","starred_url":"https://api.github.com/users/gzm0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gzm0/subscriptions","organizations_url":"https://api.github.com/users/gzm0/orgs","repos_url":"https://api.github.com/users/gzm0/repos","events_url":"https://api.github.com/users/gzm0/events{/privacy}","received_events_url":"https://api.github.com/users/gzm0/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T08:48:12Z","updated_at":"2016-04-14T08:48:12Z","body":"Indeed. That is a problem. Judging from the stacktrace, this lies inside our JUnit implementation:\r\nhttps://github.com/scala-js/scala-js/blob/master/junit-runtime/src/main/scala/org/scalajs/junit/JUnitTask.scala#L41\r\n\r\nThis logs a failure but does not report it to the event handler."}}