Skip to content

Running tests tagged with one browser still opens other browser windows #14

@oscarvarto

Description

@oscarvarto

A minimal project showing the problem is here:

https://github.com/oscarvarto/CrossBrowserTesting

Running

$ sbt
sbt:CrossBrowserTesting> test

runs the WikipediaSpec on Chrome, Firefox and Safari, as expected. But, if I try to run only the Chrome test with

sbt:CrossBrowserTesting> testOnly * -- -n org.scalatest.tags.ChromeBrowser

the Firefox and Safari browsers are still started (even though none of the test are executed for these)
and the windows are not closed.

What needs to be done in order to run only the tests tagged with a single browser, and not create other browser windows?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions