Saradha
Saradha

Reputation: 35

Protractor E2e test run in Sauce labs is not running all tests listed in the config

We use grunt protractor runner and have 49 specs to run.

When I run them in sauce labs, there are times it just runs x number of tests but not all. Any idea why? Are there any sauce settings to be passed over apart from user and key in my protarctor conf.js?

Using SauceLabs selenium server at http://ondemand.saucelabs.com:80/wd/hub

[launcher] Running 1 instances of WebDriver
Started
.....

Ran 5 of 49 specs
5 specs, 0 failures

Upvotes: 1

Views: 246

Answers (1)

alecxe
alecxe

Reputation: 473893

This kind of output is usually produced when there are "focused" tests present in the codebase. Check if there are fdescribe, fit in your tests.

As a side note, to avoid focused tests being committed to the repository, we've used static code analysis - eslint with eslint-plugin-jasmine plugin. Then, we've added a "pre-commit" git hook with the help of pre-git package that would run the eslint task before every commit eventually prohibiting any code style violations to be committed into the repository.

Upvotes: 1

Related Questions