Skip to content

Instantly share code, notes, and snippets.

@bdefore
Created October 30, 2013 18:32

Revisions

  1. bdefore created this gist Oct 30, 2013.
    38 changes: 38 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,38 @@
    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.