{"size": 667, "ext": "js", "max_stars_repo_path": "scripts/gulp/tests.js", "max_stars_repo_name": "floriansimon1/websynth", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "scripts/gulp/tests.js", "max_issues_repo_name": "floriansimon1/websynth", "max_issues_repo_issues_event_min_datetime": "2016-02-03T08:00:06.000Z", "max_issues_repo_issues_event_max_datetime": "2016-03-28T14:07:10.000Z", "max_forks_repo_path": "scripts/gulp/tests.js", "max_forks_repo_name": "floriansimon1/websynth", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 23, "max_forks_count": null, "avg_line_length": 26.68, "max_line_length": 62, "alphanum_fraction": 0.604197901}
/**
 * Tasks related to testing.
 */

const gulp     = require('gulp');
const jasmine  = require('gulp-jasmine');
const istanbul = require('gulp-istanbul');

gulp.task('test', ['coverage'], function () {
    return gulp
    .src(['tests/integration/**/*.js', 'tests/unit/**/*.js'])
    // .src('tests/unit/synth/keyboard-controller.js')
    .pipe(jasmine({ verbose: true, includeStackTrace: true }))
    .pipe(istanbul.writeReports({
        reportOpts: { dir: 'reports/coverage' },
    }))
});

gulp.task('coverage', function () {
    return gulp
    .src(['source/client/**/*.js', 'source/core/**/*.js'])
    .pipe(istanbul())
    .pipe(istanbul.hookRequire())
});
