Skip to content

Instantly share code, notes, and snippets.

@bdefore
Created October 30, 2013 18:32
Show Gist options
  • Save bdefore/7237608 to your computer and use it in GitHub Desktop.
Save bdefore/7237608 to your computer and use it in GitHub Desktop.
bdefore: ~/Documents/code/hover/casperjs-webgl
→ casperjs test --log-level=debug googletesting.js
Test file: googletesting.js
FAIL TypeError: 'undefined' is not a function (evaluating 'casper.test.begin')
# type: uncaughtError
# error: "TypeError: 'undefined' is not a function (evaluating 'casper.test.begin')"
TypeError: 'undefined' is not a function (evaluating 'casper.test.begin')
/Users/bdefore/Documents/code/hover/casperjs-webgl/googletesting.js:22
FAIL 1 tests executed in 0.012s, 0 passed, 1 failed.
Details for the 1 failed test:
In googletesting.js:0
uncaughtError: TypeError: 'undefined' is not a function (evaluating 'casper.test.begin')
bdefore: ~/Documents/code/hover/casperjs-webgl
→ brew uninstall casperjs
Uninstalling /usr/local/Cellar/casperjs/1.0.3...
bdefore: ~/Documents/code/hover/casperjs-webgl
→ brew install casperjs --devel
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
==> Downloading https://github.com/n1k0/casperjs/archive/1.1-beta1.tar.gz
######################################################################## 100.0%
🍺 /usr/local/Cellar/casperjs/1: 244 files, 1.8M, built in 2 seconds
bdefore: ~/Documents/code/hover/casperjs-webgl
→ casperjs test --log-level=debug googletesting.js
Test file: googletesting.js
# Google search retrieves 10 or more results
PASS google homepage title is the one expected
PASS main form is found
PASS google title is ok
PASS search term has been submitted
PASS google search for "casperjs" retrieves 10 or more results
PASS 5 tests executed in 0.642s, 5 passed, 0 failed, 0 dubious, 0 skipped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment