blob: 8ac7a31f5396a08d1d364311251b81db108c120a [file] [log] [blame]
// Copyright 2015 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview Gruntfile to describe and define grunt tasks.
*/
'use strict';
/**
* Method for driving the grunt actions.
*
* @param {grunt} grunt object for performing tasks.
*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jasmine: {
all: {
src: [
'./xml_document.js',
'./pcap_document.js',
'./pdml_document.js',
'./psml_document.js',
'./process_pcap.js'
],
options: {
'specs': 'test/spec/**/*.js'
}
}
}
});
// Load the plugin that provices jasmine testing.
grunt.loadNpmTasks('grunt-contrib-jasmine');
// Default task(s).
grunt.registerTask('test', ['jasmine:all']);
grunt.registerTask('default', []);
};