Giter VIP home page Giter VIP logo

jasmine-ember-testing's Introduction

jasmine-ember-testing

Enables use of ember integration test helpers for the Jasmine test suite by adding a new Ember.js Test.Adapter described at the bottom of the Ember.js Testing Guide for the Jasmine testing framework.

Uses principles of testing Jasmine asynchronous specs as described here

Using

In your equivalent Jasmine spec_helper.js, you need to set the Ember test adapter to the Jasmine adapter:

Ember.Test.adapter = Ember.Test.JasmineAdapter.create();

In a Jasmine test runner debug console, Ember.test.adapter should be an instance of the JasmineAdapter, not the default QUnit Test Adapter.

Ember & Handlebars Versions

Currently pointing at the latest Ember.js release channel (http://emberjs.com/builds/#/release) for tests and beta for Ember data:

// Handlebars
http://builds.handlebarsjs.com.s3.amazonaws.com/handlebars-v1.3.0.js

// Ember
http://builds.emberjs.com/release/ember.js

// Ember Data
http://builds.emberjs.com/beta/ember-data.js

Jasmine Versions

Currently supports Jasmine 1.3

TODOs:

  • Added underscore.js to implement equivalent toBeDeepEqual matcher that is in QUnit. Really should just implement a stand alone deepEqual function

  • Add Travis CI build

  • Add support for Jasmine 2.0

Running Tests

Need to add a headless test suite. For the time being just open the spec/index.html file in a browser.

Contributing

  1. Fork it ( https://github.com/spra85/jasmine-ember-testing/fork )
  2. Create your feature branch (git checkout -b new-feature)
  3. Commit your changes (git commit -am 'Fixed X')
  4. Push to the branch (git push origin new-feature)
  5. Create new Pull Request

jasmine-ember-testing's People

Contributors

spra85 avatar

Watchers

James Cloos avatar

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.