GithubHelp home page GithubHelp logo

add jasmine about lineman HOT 1 CLOSED

linemanjs avatar linemanjs commented on July 28, 2024
add jasmine

from lineman.

Comments (1)

searls avatar searls commented on July 28, 2024

@davemo -- i just successfully pulled in testacular for a spike on a new branch.

Here's some output

$ grunt spec
path.existsSync is now called `fs.existsSync`.
Running "configure" task

Running "spec" task
info (config): /Users/justin/code/javascript/lineman/config/spec.js 

info: Web server started at http://localhost:9101
info (launcher): Starting  browser "PhantomJS"
info (watcher): Watching "/Users/justin/tmp/foo/a/node_modules/testacular/adapter/jasmine.js"
info (watcher): Watching "/Users/justin/tmp/foo/a/spec"
info (watcher): Watching "/Users/justin/tmp/foo/a/app/js"
info (watcher): Watching "/Users/justin/tmp/foo/a/node_modules/testacular/adapter/lib/jasmine.js"
info (PhantomJS 1.6): Connected on socket id nJPRBaliHB7gX0vSwRME

PhantomJS 1.6   FAILED
    Expected 'foo' to be 'fooz'.

PhantomJS 1.6: Executed 1 of 1 (1 FAILED) (0.018 / 0.003 secs)
info: Disconnecting all browsers
<WARN> Spec execution failed with exit code 1 Use --force to continue. </WARN>

Aborted due to warnings.
justin@Searls-Air:~/tmp/foo/a - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  [01:27:34]
$ grunt spec --force
path.existsSync is now called `fs.existsSync`.
Running "configure" task

Running "spec" task
info (config): /Users/justin/code/javascript/lineman/config/spec.js 

info: Web server started at http://localhost:9101
info (launcher): Starting  browser "PhantomJS"
info (watcher): Watching "/Users/justin/tmp/foo/a/node_modules/testacular/adapter/jasmine.js"
info (watcher): Watching "/Users/justin/tmp/foo/a/spec"
info (watcher): Watching "/Users/justin/tmp/foo/a/app/js"
info (watcher): Watching "/Users/justin/tmp/foo/a/node_modules/testacular/adapter/lib/jasmine.js"
info (PhantomJS 1.6): Connected on socket id pDDYHh-kxtPVb3yIwSps

PhantomJS 1.6   FAILED
    Expected 'foo' to be 'fooz'.

PhantomJS 1.6: Executed 1 of 1 (1 FAILED) (0.017 / 0.002 secs)
info: Disconnecting all browsers
<WARN> Spec execution failed with exit code 1 Used --force, continuing. </WARN>

Done, but with warnings.
justin@Searls-Air:~/tmp/foo/a - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  [01:27:39]
$ grunt spec
path.existsSync is now called `fs.existsSync`.
Running "configure" task

Running "spec" task
info (config): /Users/justin/code/javascript/lineman/config/spec.js 

info: Web server started at http://localhost:9101
info (launcher): Starting  browser "PhantomJS"
info (watcher): Watching "/Users/justin/tmp/foo/a/node_modules/testacular/adapter/jasmine.js"
info (watcher): Watching "/Users/justin/tmp/foo/a/spec"
info (watcher): Watching "/Users/justin/tmp/foo/a/app/js"
info (watcher): Watching "/Users/justin/tmp/foo/a/node_modules/testacular/adapter/lib/jasmine.js"
info (PhantomJS 1.6): Connected on socket id feaT-TiA8KAs9GQwwWNI
.
PhantomJS 1.6: Executed 1 of 1 SUCCESS (0.018 / 0.002 secs)
info: Disconnecting all browsers

Done, without errors.
justin@Searls-Air:~/tmp/foo/a - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -  [01:27:54]
$ 

I really dig this for one-time runs. If a failure occurs, it knows to break the build, but b/c it uses grunt.warn, the convention is you can "--force" your way past the warning, so if you want to ignore test failures you can.

from lineman.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.