Skip to content

Instantly share code, notes, and snippets.

@victornswd
victornswd / gist:5781481
Created June 14, 2013 12:35
Intern custom reporter that isn't working as expected.
define(function () {
var testFn = function(){
console.log( 'before timeout ' + Date.now() );
setTimeout(function(){
console.log( 'after timeout ' + Date.now() );
}, 2000);
};
var obj = {
'/session/end': function(wd){
@victornswd
victornswd / gist:5781326
Last active December 18, 2015 12:18
Custom reporter for Intern (https://github.com/theintern/intern) that sends test results (failed/passed, name, duration etc.) to Sauce Labs (https://saucelabs.com/docs/javascript-unit-tests-integration). For usage, check this out: https://github.com/theintern/intern/wiki/Running-Tests
define(
[
'intern/node_modules/dojo/node!intern/node_modules/wd/node_modules/request'
],
function (request) {
// NOTE: For proper testing multiple unit tests in multiple environments,
// set `maxConcurrency` to **1**.
// NOTE: For now you can't start testing with a nested test.