Skip to content

Commit

Permalink
[FEATURE] Add QUnit HTML runner
Browse files Browse the repository at this point in the history
The QUnit HTML runner is enabled by default and will execute existing
QUnit test pages and testsuites without the need for a separate
configuration.
  • Loading branch information
romaniam authored and matz3 committed Mar 12, 2019
1 parent 74ad2e8 commit 2b69ab0
Show file tree
Hide file tree
Showing 55 changed files with 7,671 additions and 1,141 deletions.
62 changes: 62 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,65 @@ lib/autorun.js
lib/mockserver.js
node_modules
npm-debug.log

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# IDEs
.vscode/
*.~vsdx
.idea/

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules
jspm_packages

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# Misc
yarn.lock
.DS_Store

# Don't include private SSH key for deployment via Travis CI
deploy_key

# Custom directories
test/tmp/
jsdocs/
dist/

29 changes: 29 additions & 0 deletions lib-openui5/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
var path = require('path');

var ABS_URL = /^https?:\/\//;
var isUrlAbsolute = function(url) {
return ABS_URL.test(url);
};

var initOpenUI5 = function (files, ui5Config, basePath) {

files.unshift({pattern: __dirname + '/autorun.js', included: true, served: true, watched: false});

if (ui5Config.useMockServer) {
files.unshift({pattern: __dirname + '/mockserver.js', included: true, served: true, watched: false});
}
var ui5path;
if (isUrlAbsolute(ui5Config.path)) {
ui5path = ui5Config.path;
} else {
ui5path = path.resolve(basePath, ui5Config.path);
}
files.unshift({pattern: ui5path, included: true, watched: false, served: true});
files.unshift({pattern: __dirname + '/adapter.js', included: true, served: true, watched: false});
};

initOpenUI5.$inject = ['config.files', 'config.openui5', 'config.basePath'];

module.exports = {
'framework:openui5': ['factory', initOpenUI5]
};
Loading

0 comments on commit 2b69ab0

Please sign in to comment.