{"action":"created","issue":{"url":"https://api.github.com/repos/SBoudrias/gulp-istanbul/issues/73","labels_url":"https://api.github.com/repos/SBoudrias/gulp-istanbul/issues/73/labels{/name}","comments_url":"https://api.github.com/repos/SBoudrias/gulp-istanbul/issues/73/comments","events_url":"https://api.github.com/repos/SBoudrias/gulp-istanbul/issues/73/events","html_url":"https://github.com/SBoudrias/gulp-istanbul/issues/73","id":108399278,"number":73,"title":"How to test .es6 files","user":{"login":"vekexasia","id":200523,"avatar_url":"https://avatars.githubusercontent.com/u/200523?v=3","gravatar_id":"","url":"https://api.github.com/users/vekexasia","html_url":"https://github.com/vekexasia","followers_url":"https://api.github.com/users/vekexasia/followers","following_url":"https://api.github.com/users/vekexasia/following{/other_user}","gists_url":"https://api.github.com/users/vekexasia/gists{/gist_id}","starred_url":"https://api.github.com/users/vekexasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vekexasia/subscriptions","organizations_url":"https://api.github.com/users/vekexasia/orgs","repos_url":"https://api.github.com/users/vekexasia/repos","events_url":"https://api.github.com/users/vekexasia/events{/privacy}","received_events_url":"https://api.github.com/users/vekexasia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-25T20:10:01Z","updated_at":"2015-09-25T20:18:03Z","closed_at":null,"body":"Hello there,\r\n\r\ni'm unsure what i'm doing wrong but with this code\r\n\r\n```javascript\r\ngulp.src([dir+'/lib/**.js'])\r\n        .pipe(istanbul({\r\n          instrumenter: isparta.Instrumenter,\r\n        }))\r\n        .pipe(istanbul.hookRequire())\r\n        .on('finish', function() {\r\n          gulp.src([dir+'/test/**/*.es6'], {read: false})\r\n\r\n\r\n              .pipe(mocha({reporter: 'dot'}))\r\n              .pipe(istanbul.writeReports({\r\n                dir: coverageDir,\r\n                reportOpts: {dir: coverageDir},\r\n                reporters: ['text', 'text-summary', 'json', 'html']\r\n              }))\r\n              .on('end', cb);\r\n        });\r\n```\r\n\r\nI get the code coverage working but if i change the first `gulp.src(` to use .es6 (obviously renaming also the files in the folder from *.js to *.es6) i don't get it working at all.\r\n\r\nI tried to understand what's wrong but i honestly wasn't able to understand if the problem is with gulp-istanbul, istanbul or babel :("},"comment":{"url":"https://api.github.com/repos/SBoudrias/gulp-istanbul/issues/comments/143343749","html_url":"https://github.com/SBoudrias/gulp-istanbul/issues/73#issuecomment-143343749","issue_url":"https://api.github.com/repos/SBoudrias/gulp-istanbul/issues/73","id":143343749,"user":{"login":"SBoudrias","id":923865,"avatar_url":"https://avatars.githubusercontent.com/u/923865?v=3","gravatar_id":"","url":"https://api.github.com/users/SBoudrias","html_url":"https://github.com/SBoudrias","followers_url":"https://api.github.com/users/SBoudrias/followers","following_url":"https://api.github.com/users/SBoudrias/following{/other_user}","gists_url":"https://api.github.com/users/SBoudrias/gists{/gist_id}","starred_url":"https://api.github.com/users/SBoudrias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SBoudrias/subscriptions","organizations_url":"https://api.github.com/users/SBoudrias/orgs","repos_url":"https://api.github.com/users/SBoudrias/repos","events_url":"https://api.github.com/users/SBoudrias/events{/privacy}","received_events_url":"https://api.github.com/users/SBoudrias/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T20:18:03Z","updated_at":"2015-09-25T20:18:03Z","body":"My guess is a tool somewhere is not catching `.es6` files as being valid javascript.\r\n\r\nThis also raise the question of why you're using a non standard extension for JavaScript files?"}}