# Ember test only runs jshint stuff

**URL:** <https://discuss.emberjs.com/t/ember-test-only-runs-jshint-stuff/7209>\
**Category:** Ember CLI\
**Created:** [February 2, 2015, 10:53am UTC](https://discuss.emberjs.com/t/ember-test-only-runs-jshint-stuff/7209 "2015-02-02T10:53:13Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![kgish](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/kgish/32/13333_2.png) [@kgish](https://discuss.emberjs.com/u/kgish)\
**Post date:** [February 2, 2015, 10:53am UTC](https://discuss.emberjs.com/t/ember-test-only-runs-jshint-stuff/7209/1 "2015-02-02T10:53:13Z")

</div>

For some strange reason when I run `ember test` from the command line or `/test` from the browser, none of my tests are being run only jshint stuff.

What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![mfeckie](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/mfeckie/32/15198_2.png) [@mfeckie](https://discuss.emberjs.com/u/mfeckie)\
**Post date:** [February 2, 2015, 12:12pm UTC](https://discuss.emberjs.com/t/ember-test-only-runs-jshint-stuff/7209/2 "2015-02-02T12:12:12Z")

</div>

Are you getting any errors in the js console?

---

<div class="post-metadata">

**Author:** ![kgish](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/kgish/32/13333_2.png) [@kgish](https://discuss.emberjs.com/u/kgish)\
**Post date:** [February 2, 2015, 12:36pm UTC](https://discuss.emberjs.com/t/ember-test-only-runs-jshint-stuff/7209/3 "2015-02-02T12:36:42Z")

</div>

This is what I see:

```auto
JSHint - initializers: global failure (1, 0, 1)Rerun2 ms
Uncaught TypeError: undefined is not a function
Source: http://localhost:4200/assets/hal-client.js:3084

```

Looking at the source line number, it seems that `ember_qunit` is not defined for some reason.

```auto
define('hal-client/tests/integration/about-page-test', ['ember', 'hal-client/tests/helpers/start-app', 'ember-qunit'], function (Ember, startApp, ember_qunit) {

  'use strict';

  var App;

  ember_qunit.module("Integration: About Page", { // <-- line 3084
    setup: function () {
      App = startApp['default']();
    },
    teardown: function () {
      Ember['default'].run(App, "destroy");
    }
  });

```

---

<div class="post-metadata">

**Author:** ![mfeckie](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/mfeckie/32/15198_2.png) [@mfeckie](https://discuss.emberjs.com/u/mfeckie)\
**Post date:** [February 2, 2015, 8:49pm UTC](https://discuss.emberjs.com/t/ember-test-only-runs-jshint-stuff/7209/4 "2015-02-02T20:49:52Z")

</div>

Did you update ember-cli recently? I think there have been some changes to the Qunit API.

If you run `ember init` and hit `d` to diff each file, `n` to leave as is, you may see where the changes should be, in bower.json, package.json and the test bootstrapping files.

---

<div class="post-metadata">

**Author:** ![kgish](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/kgish/32/13333_2.png) [@kgish](https://discuss.emberjs.com/u/kgish)\
**Post date:** [February 2, 2015, 9:55pm UTC](https://discuss.emberjs.com/t/ember-test-only-runs-jshint-stuff/7209/5 "2015-02-02T21:55:10Z")

</div>

Yes I recently updated to the latest version. Noticed also that all of the jsbin test examples on the website are also broken.

---

<div class="post-metadata">

**Author:** ![jcope2013](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/jcope2013/32/9878_2.png) [@jcope2013](https://discuss.emberjs.com/u/jcope2013)\
**Post date:** [February 3, 2015, 12:12am UTC](https://discuss.emberjs.com/t/ember-test-only-runs-jshint-stuff/7209/6 "2015-02-03T00:12:13Z")

</div>

odd maybe this is related to issues I have been having where I tried to start writing acceptance tests and can’t get them working even running the generated ones ember cli generator provides just completely hangs up when they start running and all they are doing is visiting a route andThen checking the current route

---

<div class="post-metadata">

**Author:** ![rtm](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.emberjs.com/rtm/32/10953_2.png) [@rtm](https://discuss.emberjs.com/u/rtm)\
**Post date:** [June 6, 2015, 12:36pm UTC](https://discuss.emberjs.com/t/ember-test-only-runs-jshint-stuff/7209/7 "2015-06-06T12:36:40Z")

</div>

Try removing the dash in the file name. Call it `aboutpage-test.js`.

And if you find where in the tangled mass of ember-cli this is happening, do let me know. You might also try specifying `src_files` of `tests/unit/**/*-test.js` in `testem.json` and see if that picks up the dasherized names.
