You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/10/18 23:23:51 UTC

[sling-org-apache-sling-resource-editor] 35/50: SLING-4555 Resource Editor: Added initial end to end tests.

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-resource-editor.git

commit 2017062c55317e2bcf167646949276c72fa8e7c6
Author: Sandro Boehme <sb...@apache.org>
AuthorDate: Tue May 12 14:50:08 2015 +0000

    SLING-4555 Resource Editor: Added initial end to end tests.
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1678964 13f79535-47bb-0310-9956-ffa450edef68
---
 frontend/Gruntfile.js | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/frontend/Gruntfile.js b/frontend/Gruntfile.js
index 0e53f05..cf3eb4a 100644
--- a/frontend/Gruntfile.js
+++ b/frontend/Gruntfile.js
@@ -3,12 +3,15 @@ module.exports = function(grunt) {
 	var staticContentFolder = '../src/main/resources/SLING-INF/libs/sling/resource-editor-static-content';
 	var jspFolder = '../src/main/resources/SLING-INF/libs/sling/resource-editor';
 	var e2eTestSpecFolder = '../src/test/javascript/e2e/spec/**/*spec.js';
-	//console.log(grunt.option('host'));
+	var server = 'localhost';
+	var port = '8080';
 	
 	grunt.initConfig({
 		env : {
 		    build : {
-		    	PHANTOMJS_BIN : 'node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/bin/phantomjs',
+		    	PHANTOMJS_BIN: 'node_modules/karma-phantomjs-launcher/node_modules/phantomjs/lib/phantom/bin/phantomjs',
+		    	SLING_SERVER: (typeof process.env.SLING_SERVER === 'undefined' || process.env.SLING_SERVER === null || '' === process.env.SLING_SERVER) ? server : process.env.SLING_SERVER,
+		    	SLING_PORT: (typeof process.env.SLING_PORT === 'undefined' || process.env.SLING_PORT === null || '' === process.env.SLING_PORT) ? port : process.env.SLING_PORT
 		    }
 		},
 	    less: {
@@ -43,7 +46,14 @@ module.exports = function(grunt) {
 				         staticContentFolder+'/js/**/*.js',
 				         jspFolder+'/*.*'
 				         ],
-				tasks : [ 'webdriver:chrome', 'webdriver:firefox' ],
+				tasks : ['env:build', 'webdriver:chrome', 'webdriver:firefox']
+			},
+			karma : {
+				files:[
+				         staticContentFolder+'/js/**/*.js',
+				         '../src/test/javascript/**/*spec.js'],
+				tasks: ['karma:desktop_build']
+				
 			}
 	    },
 	    _comment:'The google web fonts could be downloaded and copied via grunt-goog-webfont-dl. But goog-webfont-dl directly points to the global #!/usr/bin/env node and not to the local one.',

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.