gemini-gui
Advanced tools
Comparing version 4.2.0 to 4.2.1
# Changelog | ||
## 4.2.1 - 2016-08-23 | ||
* Fixed bug with passing config path through `--config` option | ||
## 4.2.0 - 2016-07-28 | ||
@@ -4,0 +8,0 @@ |
@@ -51,3 +51,3 @@ 'use strict'; | ||
var Gemini = findGemini(); | ||
this._gemini = new Gemini(this._options.configFile, {cli: true, env: true}); | ||
this._gemini = new Gemini(this._options.config, {cli: true, env: true}); | ||
_.set(this._gemini.config, 'system.tempDir', this.currentDir); | ||
@@ -54,0 +54,0 @@ |
@@ -16,3 +16,3 @@ 'use strict'; | ||
.option('-h, --hostname <hostname>', 'Hostname to launch server on', 'localhost') | ||
.option('-c, --config <file>', 'Gemini config file', path.resolve) | ||
.option('-c, --config <file>', 'Gemini config file', path.resolve, '') | ||
.option('-g, --grep <pattern>', 'run only suites matching the pattern', RegExp) | ||
@@ -19,0 +19,0 @@ .option('-a, --auto-run', 'auto run immediately') |
@@ -1,2 +0,1 @@ | ||
/*jshint browser:true*/ | ||
'use strict'; | ||
@@ -49,3 +48,3 @@ | ||
} | ||
return failed? _this._sections.markAsQueued(failed) : _this._sections.markAllAsQueued(); | ||
return failed ? _this._sections.markAsQueued(failed) : _this._sections.markAllAsQueued(); | ||
}); | ||
@@ -109,3 +108,3 @@ }, | ||
data.metaInfo = data.state && data.state.metaInfo? JSON.stringify(data.state.metaInfo, null, 4) : 'Meta info is not available'; | ||
data.metaInfo = data.state && data.state.metaInfo ? JSON.stringify(data.state.metaInfo, null, 4) : 'Meta info is not available'; | ||
@@ -183,3 +182,3 @@ if (data.equal) { | ||
eventSource.addEventListener('end', function(e) { | ||
eventSource.addEventListener('end', function() { | ||
_this._toggleButtons(true); | ||
@@ -186,0 +185,0 @@ _this.state = RunStates.PENDING; |
@@ -1,2 +0,1 @@ | ||
/*jshint browser:true*/ | ||
'use strict'; | ||
@@ -3,0 +2,0 @@ |
@@ -1,3 +0,3 @@ | ||
/*jshint browser:true*/ | ||
'use strict'; | ||
var Section = require('./section'), | ||
@@ -4,0 +4,0 @@ Index = require('../common/tests-index'), |
@@ -25,3 +25,3 @@ 'use strict'; | ||
var status; | ||
for (var i = 0; i< statusList.length; i++) { | ||
for (var i = 0; i < statusList.length; i++) { | ||
status = statusList[i]; | ||
@@ -51,3 +51,3 @@ if (sectionNode.classList.contains(statusClass(status))) { | ||
constructor: Section, | ||
expand:function() { | ||
expand: function() { | ||
this.domNode.classList.remove('section_collapsed'); | ||
@@ -54,0 +54,0 @@ }, |
@@ -1,2 +0,1 @@ | ||
/*jshint browser:true*/ | ||
'use strict'; | ||
@@ -3,0 +2,0 @@ |
@@ -13,3 +13,3 @@ 'use strict'; | ||
add: function(item) { | ||
if (!item.suite || item.suite.path == null) { | ||
if (!item.suite || item.suite.path === null) { | ||
return; | ||
@@ -26,3 +26,3 @@ } | ||
if (!item.state || item.state.name == null) { | ||
if (!item.state || item.state.name === null) { | ||
indexData.suite = item; | ||
@@ -40,3 +40,3 @@ return; | ||
if (item.browserId == null) { | ||
if (item.browserId === null) { | ||
stateData.state = item; | ||
@@ -60,3 +60,3 @@ return; | ||
} | ||
if (!query.state || query.state.name == null) { | ||
if (!query.state || query.state.name === null) { | ||
return indexData.suite; | ||
@@ -69,3 +69,3 @@ } | ||
if (query.browserId == null) { | ||
if (query.browserId === null) { | ||
return stateData.state; | ||
@@ -72,0 +72,0 @@ } |
@@ -5,3 +5,3 @@ 'use strict'; | ||
bodyParser = require('body-parser'), | ||
exphbs = require('express-handlebars'), | ||
exphbs = require('express-handlebars'), | ||
q = require('q'), | ||
@@ -8,0 +8,0 @@ _ = require('lodash'), |
@@ -20,3 +20,3 @@ 'use strict'; | ||
return suites.map(function(suite) { | ||
var data = { | ||
var data = { | ||
suite: suite, | ||
@@ -47,8 +47,8 @@ children: this._mapSuites(suite.children), | ||
var fullPath = this._app.getScreenshotPath(suite, state.name, browserId), | ||
data = { | ||
data = { | ||
suite: suite, | ||
state: state, | ||
browserId: browserId, | ||
metaInfo: state && state.metaInfo? JSON.stringify(state.metaInfo, null, 4) : 'Meta info is not available', | ||
skipped: state.shouldSkip(this._app.getBrowserCapabilites(browserId)), | ||
metaInfo: state && state.metaInfo ? JSON.stringify(state.metaInfo, null, 4) : 'Meta info is not available', | ||
skipped: state.shouldSkip(browserId), | ||
referenceURL: this._app.refPathToURL(fullPath, browserId) | ||
@@ -55,0 +55,0 @@ }; |
{ | ||
"name": "gemini-gui", | ||
"version": "4.2.0", | ||
"version": "4.2.1", | ||
"description": "GUI for gemini testing utility", | ||
@@ -12,4 +12,4 @@ "main": "lib/index.js", | ||
"prepublish": "npm run build-client", | ||
"test": "istanbul test _mocha --require ./test/setup.js test/*", | ||
"lint": "jshint . && jscs ." | ||
"test": "istanbul test _mocha -- test/", | ||
"lint": "eslint ." | ||
}, | ||
@@ -41,7 +41,7 @@ "author": "Sergey Tatarintsev <sevinf@yandex-team.ru> (https://github.com/SevInf)", | ||
"dirty-chai": "^1.2.2", | ||
"eslint": "^3.3.1", | ||
"eslint-config-gemini-testing": "^2.2.0", | ||
"gemini": "^4.0.0", | ||
"hbsfy": "^2.1.0", | ||
"istanbul": "^0.3.2", | ||
"jscs": "^1.6.2", | ||
"jshint": "^2.5.6", | ||
"minifyify": "^7.3.2", | ||
@@ -48,0 +48,0 @@ "mocha": "^2.4.4", |
@@ -36,10 +36,11 @@ # Gemini GUI | ||
* `--root-url`, `-r` - use specified URL, instead of `rootUrl` setting from config file. | ||
* `--grid-url`, `-g` - use specified URL, instead of `gridUrl` setting from config file. | ||
* `--grid-url` - use specified URL, instead of `gridUrl` setting from config file. | ||
* `--screenshots-dir`, `-s` - use specified directory, instead of `screenshotsDir` setting | ||
from config. | ||
* `--grep` - find suites by name. Note that if some suite files specified search will be done | ||
* `--grep`, `-g` - find suites by name. Note that if some suite files specified search will be done | ||
only in that files. | ||
* `--debug` - enable debug mode (verbose logging). | ||
* `--auto-run`, `-a` - run gemini immediately (without pressing `run` button). | ||
You can also override config file options with environment variables. Use `gemini` | ||
[documentation](https://github.com/gemini-testing/gemini#configuration) for details. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
46
724941
38
1658