{"action":"closed","issue":{"url":"https://api.github.com/repos/sindresorhus/gulp-mocha/issues/74","repository_url":"https://api.github.com/repos/sindresorhus/gulp-mocha","labels_url":"https://api.github.com/repos/sindresorhus/gulp-mocha/issues/74/labels{/name}","comments_url":"https://api.github.com/repos/sindresorhus/gulp-mocha/issues/74/comments","events_url":"https://api.github.com/repos/sindresorhus/gulp-mocha/issues/74/events","html_url":"https://github.com/sindresorhus/gulp-mocha/issues/74","id":53597863,"number":74,"title":"Gulp 4.0 mocha doesn't run tests","user":{"login":"ilanbiala","id":3695164,"avatar_url":"https://avatars.githubusercontent.com/u/3695164?v=3","gravatar_id":"","url":"https://api.github.com/users/ilanbiala","html_url":"https://github.com/ilanbiala","followers_url":"https://api.github.com/users/ilanbiala/followers","following_url":"https://api.github.com/users/ilanbiala/following{/other_user}","gists_url":"https://api.github.com/users/ilanbiala/gists{/gist_id}","starred_url":"https://api.github.com/users/ilanbiala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilanbiala/subscriptions","organizations_url":"https://api.github.com/users/ilanbiala/orgs","repos_url":"https://api.github.com/users/ilanbiala/repos","events_url":"https://api.github.com/users/ilanbiala/events{/privacy}","received_events_url":"https://api.github.com/users/ilanbiala/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-07T05:01:42Z","updated_at":"2016-03-11T16:19:05Z","closed_at":"2016-03-11T16:19:05Z","body":"Mocha doesn't actually seem to run the tests when using the latest commit in the Gulp 4.0 branch. It just logs `Starting 'mocha'` and then exits.\r\n\r\nSample code:\r\n```\r\nfunction mochaTest() {\r\n\tgulp.src([\r\n\t\t\t'app/**/*.js',\r\n\t\t\t'config/**/*.js',\r\n\t\t\t'public/modules/**/*.js'\r\n\t\t])\r\n\t\t.pipe(istanbul())\r\n\t\t.on('finish', function() {\r\n\t\t\tvar server = require('./server');\r\n\r\n\t\t\treturn gulp.src('./test/**/*.js')\r\n\t\t\t\t.pipe(mocha({\r\n\t\t\t\t\t// reporter: 'mocha-lcov-reporter'\r\n\t\t\t\t}))\r\n\t\t\t\t.pipe(istanbul.writeReports())\r\n\t\t\t\t.once('end', function() {\r\n\t\t\t\t\tserver.kill();\r\n\t\t\t\t});\r\n\t\t});\r\n}\r\n```\r\n\r\n`require('./server')` auto-starts the server and I just kill it at the end once mocha has run. This worked with 3.8.10, but with Gulp 4.0 no tests are actually run."}}