-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] Integrate execution without htmlrunner
BREAKING CHANGE: The `useMockServer` option has been removed. A MockServer needs to be started from the test code.
- Loading branch information
Showing
21 changed files
with
342 additions
and
429 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
(function (window) { | ||
|
||
var karma = window.__karma__; | ||
var config = karma.config; | ||
var ui5config = (config && config.ui5) || {}; | ||
var ui5configTests = ui5config.tests; | ||
|
||
if (!ui5configTests) { | ||
// No tests defined - skipping autorun... | ||
// Tests must be loaded manually | ||
return; | ||
} | ||
|
||
// Prevent Karma from running prematurely. | ||
karma.loaded = function () { }; | ||
|
||
sap.ui.getCore().attachInit(function () { | ||
sap.ui.require(ui5configTests, function () { | ||
// Finally, start Karma to run the tests. | ||
karma.start(); | ||
}); | ||
|
||
}); | ||
|
||
})(window); |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
(function(window) { | ||
var config = window.__karma__.config, | ||
ui5config = (config && config.ui5) || {}, | ||
bootstrapConfig = ui5config.config || {}; | ||
|
||
window["sap-ui-config"] = bootstrapConfig; | ||
})(window); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.