EBernhardson has uploaded a new change for review. (
https://gerrit.wikimedia.org/r/381509 )
Change subject: Allow specifying a single integration test on CLI
......................................................................
Allow specifying a single integration test on CLI
Change-Id: Iba42d29aa8f9475bb7f82443c4724717ebe570f9
---
M Gruntfile.js
1 file changed, 11 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CirrusSearch
refs/changes/09/381509/1
diff --git a/Gruntfile.js b/Gruntfile.js
index b3f7d8f..5d38ddf 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -4,6 +4,8 @@
* @package CirrusSearch
*/
+const path = require( 'path' );
+
/*jshint node:true */
module.exports = function ( grunt ) {
grunt.loadNpmTasks( 'grunt-contrib-jshint' );
@@ -55,7 +57,15 @@
// Configure WebdriverIO Node task
webdriver: {
test: {
- configFile: WebdriverIOconfigFile
+ configFile: WebdriverIOconfigFile,
+ spec: (() => {
+ let spec = grunt.option( 'spec' );
+ return !spec
+ ? undefined
+ : (spec[0] === '/'
+ ? spec
+ : path.join(__dirname,
'tests/integration/features', spec))
+ })()
}
}
} );
--
To view, visit https://gerrit.wikimedia.org/r/381509
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iba42d29aa8f9475bb7f82443c4724717ebe570f9
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CirrusSearch
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits