gemini-gui
Advanced tools
Comparing version 4.1.0 to 4.2.0
# Changelog | ||
## 4.2.0 - 2016-07-28 | ||
* Supported displaying of test url and session id in meta-info of HTML reporter. | ||
## 4.1.0 - 2016-07-15 | ||
* Supported option `--browser`. | ||
## 4.0.0 - 2016-04.20 | ||
@@ -4,0 +12,0 @@ |
@@ -17,3 +17,4 @@ 'use strict'; | ||
.option('-c, --config <file>', 'Gemini config file', path.resolve) | ||
.option('--grep <pattern>', 'run only suites matching the pattern', RegExp) | ||
.option('-g, --grep <pattern>', 'run only suites matching the pattern', RegExp) | ||
.option('-a, --auto-run', 'auto run immediately') | ||
.parse(process.argv); | ||
@@ -20,0 +21,0 @@ |
@@ -27,3 +27,3 @@ /*jshint browser:true*/ | ||
runState: function(state) { | ||
this._run(state); | ||
this.run(state); | ||
}, | ||
@@ -35,7 +35,7 @@ | ||
if (failed.length) { | ||
this._run(this._sections.findFailedStates()); | ||
this.run(this._sections.findFailedStates()); | ||
} | ||
}, | ||
_run: function(failed) { | ||
run: function(failed) { | ||
var _this = this; | ||
@@ -72,3 +72,3 @@ | ||
this._runButton.addEventListener('click', function() { | ||
_this._run(); | ||
_this.run(); | ||
}); | ||
@@ -111,2 +111,4 @@ this._runFailedButton.addEventListener('click', this._runAllFailed.bind(this)); | ||
data.metaInfo = data.state && data.state.metaInfo? JSON.stringify(data.state.metaInfo, null, 4) : 'Meta info is not available'; | ||
if (data.equal) { | ||
@@ -113,0 +115,0 @@ section.setAsSuccess(data); |
/*jshint browser:true*/ | ||
'use strict'; | ||
var Controller = require('./controller'), | ||
@@ -11,5 +12,7 @@ forEach = Array.prototype.forEach, | ||
hbruntime.registerPartial('controls', require('../views/partials/controls.hbs')); | ||
hbruntime.registerPartial('meta-info', require('../views/partials/meta-info.hbs')); | ||
function bodyClick(e) { | ||
var target = e.target; | ||
if (target.classList.contains('cswitcher__item')) { | ||
@@ -23,2 +26,6 @@ handleColorSwitch( | ||
} | ||
if (target.classList.contains('meta-info__switcher')) { | ||
toggleMetaInfo(target); | ||
} | ||
} | ||
@@ -50,5 +57,14 @@ | ||
function toggleMetaInfo(target) { | ||
target.closest('.meta-info').classList.toggle('meta-info_collapsed'); | ||
} | ||
document.addEventListener('DOMContentLoaded', function() { | ||
window.controller = new Controller(); | ||
document.body.addEventListener('click', bodyClick); | ||
// Run immediately | ||
if (document.querySelector('.report').dataset.autoRun) { | ||
window.controller.run(); | ||
} | ||
}); |
@@ -43,2 +43,5 @@ 'use strict'; | ||
response.state.metaInfo = response.state.metaInfo || {}; | ||
response.state.metaInfo.sessionId = data.sessionId; | ||
if (data.equal) { | ||
@@ -45,0 +48,0 @@ app.sendClientEvent('endTest', response); |
@@ -16,2 +16,5 @@ 'use strict'; | ||
extname: '.hbs', | ||
compilerOptions: { | ||
preventIndent: true | ||
}, | ||
partialsDir: path.join(__dirname, 'views', 'partials') | ||
@@ -35,3 +38,4 @@ })); | ||
res.render('main', { | ||
suites: suites | ||
suites: suites, | ||
autoRun: options.autoRun | ||
}); | ||
@@ -38,0 +42,0 @@ }) |
@@ -50,5 +50,7 @@ 'use strict'; | ||
browserId: browserId, | ||
metaInfo: state && state.metaInfo? JSON.stringify(state.metaInfo, null, 4) : 'Meta info is not available', | ||
skipped: state.shouldSkip(this._app.getBrowserCapabilites(browserId)), | ||
referenceURL: this._app.refPathToURL(fullPath, browserId) | ||
}; | ||
this._index.add(data); | ||
@@ -55,0 +57,0 @@ return data; |
{ | ||
"name": "gemini-gui", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "GUI for gemini testing utility", | ||
@@ -22,3 +22,3 @@ "main": "lib/index.js", | ||
"express": "^4.8.6", | ||
"express-handlebars": "^1.0.3", | ||
"express-handlebars": "^2.0.0", | ||
"handlebars": "^1.3.0", | ||
@@ -25,0 +25,0 @@ "inherit": "^2.2.3", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
727463
39
1662
0
+ Addedalign-text@0.1.4(transitive)
+ Addedcamelcase@1.2.1(transitive)
+ Addedcenter-align@0.1.3(transitive)
+ Addedcliui@2.1.0(transitive)
+ Addeddecamelize@1.2.0(transitive)
+ Addedexpress-handlebars@2.0.1(transitive)
+ Addedhandlebars@3.0.8(transitive)
+ Addedis-buffer@1.1.6(transitive)
+ Addedkind-of@3.2.2(transitive)
+ Addedlazy-cache@1.0.4(transitive)
+ Addedlongest@1.0.1(transitive)
+ Addedminimist@0.0.10(transitive)
+ Addedobject-keys@1.0.12(transitive)
+ Addedobject.assign@1.1.1(transitive)
+ Addedoptimist@0.6.1(transitive)
+ Addedrepeat-string@1.6.1(transitive)
+ Addedright-align@0.1.3(transitive)
+ Addedsource-map@0.5.7(transitive)
+ Addeduglify-js@2.8.29(transitive)
+ Addeduglify-to-browserify@1.0.2(transitive)
+ Addedwindow-size@0.1.0(transitive)
+ Addedwordwrap@0.0.2(transitive)
+ Addedyargs@3.10.0(transitive)
- Removedexpress-handlebars@1.2.2(transitive)
- Removedhandlebars@2.0.0(transitive)
Updatedexpress-handlebars@^2.0.0