Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jute

Package Overview
Dependencies
Maintainers
1
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jute - npm Package Compare versions

Comparing version 0.0.64 to 0.0.65

jute_jasmine.js

2

jute/actions/heartBeat.js

@@ -56,3 +56,3 @@ /*

hub.once('action:checkedResults', function(results) {
hub.on('action:checkedResults', function(results) {
results.current_status = { browsers: cache.browsers, tests_to_run: cache.tests_to_run };

@@ -59,0 +59,0 @@ results.config = hub.config;

@@ -278,3 +278,3 @@ /*

});
}else {
} else {
// UI wants to run multiple tests - redirect to it!

@@ -281,0 +281,0 @@ if (multipleFromUI) {

@@ -68,3 +68,3 @@ /*

doComp(ret, component, function() {
if (Object.keys(ret.current_results).length == components.length) {
if (Object.keys(ret.current_results).length == components.length) {
hub.emit('action:checkedResults', ret);

@@ -86,2 +86,3 @@ }

find = require('npm/lib/utils/find'),
fs = require('fs'),
baseDir = hub.config.outputDir;

@@ -109,3 +110,3 @@

try {
var coverage = path.existsSync(path.join(baseDir, component, 'lcov-report'));
var coverage = fs.existsSync(path.join(baseDir, component, 'lcov-report'));
ret.current_results[component] = {};

@@ -112,0 +113,0 @@ ret.current_results[component].test_results = testResults;

@@ -5,3 +5,3 @@ {

"keywords": ["selenium", "test", "testing", "unit", "tests"],
"version": "0.0.64",
"version": "0.0.65",
"author": "Mark Ethan Trostler <mark@zzo.com>",

@@ -12,3 +12,4 @@ "preferGlobal": true,

"jute_submit_test": "./submit_test.js",
"jute_v8": "./jute_v8.js"
"jute_v8": "./jute_v8.js",
"jute_jasmine": "./jute_jasmine.js"
},

@@ -41,2 +42,3 @@ "scripts" : {

, "daemonize" : "~0.3"
, "jasmine-node" : "~1.0"
},

@@ -43,0 +45,0 @@ "config" : {

@@ -44,3 +44,3 @@ #!/usr/bin/env node

args = opt
.usage('Usage: $0 --test [testfile] [ --test [another testfile] ] [ --host [JUTE host] ] [ --port [JUTE host port] ] [ --sel_host [Selenium host] ] [ --sel_browser [Selenium browser spec] ] [ --seleniums # ] [ --sel2 ] [ --load ] ] [ --send_output ] [ --wait ] [ --clear_results ] [ -v8 ] [ --status ] [ --snapshot ] [ --retry ] [ --phantomjs ] [ --screen # ]')
.usage('Usage: $0 --test [testfile] [ --test [another testfile] ] [ --host [JUTE host] ] [ --port [JUTE host port] ] [ --sel_host [Selenium host] ] [ --sel_browser [Selenium browser spec] ] [ --seleniums # ] [ --sel2 ] [ --load ] ] [ --send_output ] [ --wait ] [ --clear_results ] [ -v8 ] [ --jasmine] [ --coverage ] [ --status ] [ --snapshot ] [ --retry ] [ --phantomjs ] [ --screen # ]')
.alias('t', 'test')

@@ -66,2 +66,4 @@ .alias('h', 'host')

.default('v8', false)
.default('jasmine', false)
.default('coverage', false)
.default('snapshot', false)

@@ -89,2 +91,4 @@ .default('load', false)

.describe('v8', 'Run these test(s) using the V8 backend')
.describe('jasmine', 'Run these test(s) using Jasmine')
.describe('coverage', 'Run ALL test(s) with code coverage for V8 or Jasmine')
.describe('status', 'Just get status')

@@ -101,2 +105,3 @@ .describe('retry', 'Number of time to retry a failed test')

if (!config) {
console.error('You must % npm start jute!');
process.exit(0);

@@ -114,4 +119,4 @@ }

if (args.wait && args.v8) {
console.log("You don't need '--wait' for V8 tests!");
if (args.wait && (args.v8 || args.jasmine)) {
console.log("You don't need '--wait' for V8 or Jasmine tests!");
}

@@ -124,2 +129,12 @@

if (args.jasmine && args.sel_host) {
console.error("Erg Jasmine or Selenium - pick one!");
process.exit(1);
}
if (args.jasmine && args.v8) {
console.error("Erg Jasmine or V8 - pick one!");
process.exit(1);
}
util.inherits(eventHubF, events.EventEmitter);

@@ -141,2 +156,7 @@ var eventHub = new eventHubF();

var test = tests[i];
if (args.coverage) {
test += "?do_coverage=1";
}
exec(path.join(__dirname, 'jute_v8.js') + ' ' + test, function(error, stdout, stderr) {

@@ -155,2 +175,26 @@ if (error) {

}
} else if (args.jasmine) {
var exec = require('child_process').exec,
path = require('path');
for (var i = 0; i < tests.length; i++) {
var test = tests[i];
if (args.coverage) {
test += "?do_coverage=1";
}
exec(path.join(__dirname, 'jute_jasmine.js') + ' ' + test, function(error, stdout, stderr) {
if (error) {
console.error("Error running jute_jasmine: " + error);
} else {
console.error(stderr);
console.log(stdout);
}
if (i == args.length) {
process.exit(0);
}
});
}
} else {

@@ -157,0 +201,0 @@ // POST space separated list of tests

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc