How to run a custom test using the Polymer web analyzer component?

When developing a Polymer web component, in particular when adding additional tests, each time I make adjustments to the tests, it can be rather cumbersome to perform the entire component test.

The simplest answer is to comment on tests that should not be performed, but it also becomes tedious.

Since the web tester component uses Mocha, there probably should be some way to specify only a specific set of tests to run. It’s easy to target a specific file, but how can you target a specific test inside a file?

+8
polymer web-component-tester
source share
1 answer

Have you tried exclusive mocha tests? Sample form documentation

describe('Array', function() { describe.only('#indexOf()', function() { // ... }); }); 
0
source share

All Articles