migalons / angular-wdio6-builder-demo

A project to show how to replace protractor for webdriber.io (v6) for running your e2e test, using custom builder @migalons/angular-wdio-builder
MIT License
5 stars 4 forks source link

Run specific spec file #2

Closed mjlucero closed 3 years ago

mjlucero commented 3 years ago

Hello! Thanks for the great demo, I have a quick question about how we can run a specific spec file.

migalons commented 3 years ago

Hi.

In the configuration file, you specify what files to run (See e2e/wdio.config.js)

Here you have a property that is specifying what files to run. Default content is this:

specs: [
        "${__dirname}/test/specs/**/*.js"
    ],

You can edit this content to specify the file you need, or have several custom files, for your different suites.

In this example I already mention how to run different configurations.