UNPKG

statsd-grapher

Version:

A statsd backend that serves an http page with the graphical data

62 lines (59 loc) 2.25 kB
exports.config = { specs: [ 'test/statsd-view.js' ], capabilities: [{ browserName: 'phantomjs' }], // =================== // Test Configurations // =================== // Define all options that are relevant for the WebdriverIO instance here // // Per default WebdriverIO commands getting executed in a synchronous way using // the wdio-sync package. If you still want to run your tests in an async way // using promises you can set the sync command to false. sync: false, // // Level of logging verbosity: silent | verbose | command | data | result | error logLevel: 'silent', // // Enables colors for log output. coloredLogs: true, // // Saves a screenshot to a given path if a command fails. screenshotPath: 'shots', // // Set a base URL in order to shorten url command calls. If your url parameter starts // with "/", then the base url gets prepended. baseUrl: 'http://localhost:5000', // // Default timeout for all waitFor* commands. waitforTimeout: 1000, // // Framework you want to run your specs with. // The following are supported: Mocha, Jasmine, and Cucumber // see also: http://webdriver.io/guide/testrunner/frameworks.html // // Make sure you have the wdio adapter package for the specific framework // installed before running any tests. framework: 'mocha', // // Test reporter for stdout. // The following are supported: dot (default), spec, and xunit // see also: http://webdriver.io/guide/testrunner/reporters.html reporters: ['spec'], // // Options to be passed to Mocha. // See the full list at http://mochajs.org/ mochaOpts: { ui: 'bdd' }, // // Gets executed before test execution begins. At this point you will have access to all global // variables like `browser`. It is the perfect place to define custom commands. before: function() { const chai = require('chai') , chaiAsPromised = require('chai-as-promised') chai.Should() chai.use(chaiAsPromised) chaiAsPromised.transferPromiseness = browser.transferPromiseness global.screenshotFolder = './screenshots' } };