Skip to content
This repository was archived by the owner on Dec 10, 2024. It is now read-only.
This repository was archived by the owner on Dec 10, 2024. It is now read-only.

Mocha@3: it.only does not work #73

Description

@webpapaya

Hey I'm trying to only run a single test with it.only like it's defined in here https://mochajs.org/#exclusive-tests, but both tests are running when i open up my test suite in the browser. Am I doing something wrong or is this feature not supported by ember-cli-mocha?

My test looks like:

describe('test it.only feature', function() {
  it('should not run', function() {
    expect(true).to.equal(true);
  });

  it.only('should run', function() {
    expect(true).to.equal(true);
  });
});

Update:
A workarround to this issue is to use the grep argument and paste in the test name. Like

http://localhost:7357/7159/tests/index.html?hidepassed&grep=should%20run

Thanks,
Thomas

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions