testacular config

by whitewolf

JavaScript

@echo off
cd %SO_HOME%/superonline-webapp/src/test/resources/javascript/runner/jstest-browsers
SET CHROME_BIN=C:\Dev\work\tools\browsers\chrome\11.0.696.71\chromeJS.exe
SET FIREFOX_BIN=C:\Dev\work\tools\browsers\firefox12\App\Firefox\firefox.exe
SET path=%path%;C:\Dev\tools\nodejs\;C:\Dev\tools\nodejs\node_modules\testacular\bin\;
testacular start

// Testacular configuration
// Generated on Thu Dec 06 2012 10:38:07 GMT+1100 (AUS Eastern Daylight Time)


// base path, that will be used to resolve files and exclude
basePath = '../../../../..';

preprocessors = {
    '**/main/**/manage/**/*.js': 'coverage',   
};


// list of files / patterns to load in the browser
files = [
  
  'main/webapp/javascript/jquery/*.js',
  
  JASMINE,
  JASMINE_ADAPTER,
  'test/resources/javascript/runner/angular-mocks-1.0.1.js',
  
];

// list of files to exclude
exclude = [
   'main/webapp/javascript/3rdparty/jquery.flot.resize.min.js'
];


// test results reporter to use
// possible values: 'dots', 'progress', 'junit'
reporters = ['progress', 'coverage', 'junit'];


// web server port
port = 9876;


// cli runner port
runnerPort = 9100;


// enable / disable colors in the output (reporters and logs)
colors = false;


// level of logging
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG
logLevel = LOG_ERROR;


// enable / disable watching file and executing tests whenever any file changes
autoWatch = true;

junitReporter = {
    // will be resolved to basePath (in the same way as files/exclude patterns)
    outputFile: 'test/resources/javascript/output/test-results.xml'
};

// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera
// - Safari (only Mac)
// - PhantomJS
// - IE (only Windows)
browsers = ["Firefox", "Chrome"];


// If browser does not capture in given timeout [ms], kill it
captureTimeout = 5000;


// Continuous Integration mode
// if true, it capture browsers, run tests and exit
singleRun =...