-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Description
Expected Behavior
QUnit test suite with 1 simple test passes successfully.
Actual Behavior
QUnit test suite with 1 simple test fails with global failure due to error `'console' is undefined (see screenshot).
Steps to Reproduce the Problem
- single test suite
index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test Suite</title>
<link href="node_modules/qunitjs/qunit/qunit.css" rel="stylesheet">
<script src="node_modules/qunitjs/qunit/qunit.js"></script>
<script>
QUnit.test('simple value', function (assert) {
assert.expect(1);
assert.strictEqual(true, true, 'testing...');
});
</script>
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture"></div>
</body>
</html>
- browserstack config:
{
"test_framework" : "qunit",
"test_path": [
"index.html"
],
"exit_with_fail": true,
"browsers": [
"ie_9"
]
}
- Execute
node_modules/.bin/browserstack-runner
Platform details
- browserstack-runner version:
0.9.0
- node version: v11.6.0
- os type and version: OSX Mojave 10.14.2
Details
See screenshot:
The error points to:
var browserstack_console = console || window.console || {}; |
If I remember IE pecularities correctly this might be because you cannot do var x = foo || ...
when foo
has never been set up before, i.e. is very much indeed undefined. A test like typeof foo == 'undefined'
might work better/be needed. This could be IE 6-8 knowledge though.
PS: also, the runner will just hang until it times out...
Launching 1 worker(s) for 1 run(s).
[Windows 7, Internet Explorer 9.0] Launching
[Windows 7, Internet Explorer 9.0] Received ack
[Windows 7, Internet Explorer 9.0] Launched
[Windows 7, Internet Explorer 9.0] Awaiting ack
Metadata
Metadata
Assignees
Labels
No labels