Last active
December 17, 2015 08:38
-
-
Save jfsiii/5580960 to your computer and use it in GitHub Desktop.
Accessing / reading console.log in BrowserStack.
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
I've got [a test page](http://jfsiii.github.io/XCSSMatrix/test/) which has no visual output but, rather, runs some math-based tests and writes [TAP](http://en.wikipedia.org/wiki/Test_Anything_Protocol)-compatible output to console.log. | |
Something like: | |
``` | |
TAP version 13 | |
# 2D | |
# 3D | |
# constructors | |
# attributes | |
# methods | |
# constructors | |
# attributes | |
# methods | |
# should return a value when called via the default constructor | |
ok 1 (unnamed assert) | |
# should return a value when called via the object constructor | |
ok 2 (unnamed assert) | |
# should return a value when called via the string constructor | |
ok 3 (unnamed assert) | |
# should have proper attibutes on the default matrix | |
ok 4 should be equal | |
ok 5 should be equal | |
ok 6 should be equal | |
ok 7 should be equal | |
ok 8 should be equal | |
ok 9 should be equal | |
# should have proper attributes on a custom matrix | |
ok 10 should be equal | |
ok 11 should be equal | |
ok 12 should be equal | |
ok 13 should be equal | |
ok 14 should be equal | |
ok 15 should be equal | |
# toString() | |
# setMatrixValue() | |
# translate() | |
# skewX() | |
# skewY() | |
# scale() | |
# rotate() | |
# multiply() | |
# inverse() | |
# should return a value when called via the default constructor | |
ok 16 (unnamed assert) | |
# should return a value when called via the object constructor | |
ok 17 (unnamed assert) | |
# should return a value when called via the string constructor | |
ok 18 (unnamed assert) | |
# should have proper attibutes on the default matrix | |
ok 19 should be equal | |
ok 20 should be equal | |
[SNIPPED] | |
ok 452 should be equal | |
1..452 | |
# tests 452 | |
# pass 452 | |
# ok | |
``` | |
Is there anyway to access this output? I'd prefer accessing it via the API but I'll be happy if I can get it at all. | |
I realize I could write a test page, like [this one](http://jfsiii.github.io/firmin/test/runner.html), which displays the output in page. However, while this works well for quick look test, it's nowhere near as powerful as the TAP output ("test N failed. Expected: X Actual: Y"). I'd really like access to it. | |
Thanks for the great service and any help. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment