How do I run a specific test using the Polymer web-component-tester?
Asked Answered
G

1

9

While developing a Polymer web component, more specifically while adding additional tests, it can become quite cumbersome to run all of the component's test each time I make an adjustment to the tests.

The simplest answer would be to comment out the tests that shouldn't run, but this also gets a but tiresome.

Since the web-component-tester makes use of Mocha there should probably be some way of indicating only a specific set of test to run. It's easy to target a specific file, but how would one go about targeting a specific test inside a file?

Graduate answered 6/7, 2016 at 8:43 Comment(0)
M
2

Have you tried exclusive tests in mocha? Example form documentation

describe('Array', function() {
  describe.only('#indexOf()', function() {
    // ...
  });
});
Mendelism answered 16/5, 2017 at 13:21 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.