Shamoon
Shamoon

Reputation: 43619

How do write a unit test suite with Ember.js?

I've seen a ton of links out there trying to explain, but what I'm looking for is a how-to set up my test harness and unit tests. So far I have an HTML file:

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>EmberJS Testing</title>
  <link rel="stylesheet" 
    href="scripts/bower_components/qunit/qunit/qunit.css">
</head>
<body>
  <div id="qunit"></div>
  <div id="qunit-fixture"></div>
  <script type="text/javascript" src="scripts/bower_components/qunit/qunit/qunit.js"></script>
  <script type="text/javascript" src="scripts/bower_components/jquery/jquery.min.js"></script>
  <script type="text/javascript"
    src="scripts/bower_components/handlebars/handlebars.js"></script>
  <script type="text/javascript"
    src="scripts/bower_components/ember/ember.min.js"></script>
</body>
</html>

But I'm not sure how to further incorporate tests into this.

Upvotes: 1

Views: 115

Answers (1)

Kingpin2k
Kingpin2k

Reputation: 47367

I added a quick example of qunit into the ember.js wiki

Here's the example: http://emberjs.jsbin.com/wipo/3/edit

Upvotes: 2

Related Questions