Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Running all tests in a file instead of specific one #63

Closed
GuyMograbi opened this issue Jul 11, 2017 · 2 comments
Closed

Running all tests in a file instead of specific one #63

GuyMograbi opened this issue Jul 11, 2017 · 2 comments
Labels

Comments

@GuyMograbi
Copy link

It is possible in protractor to run specific tests within files

angular/protractor#164

protractor --specs='tests/e2e/#.js' --grep="SingleLoginTest"
@GuyMograbi GuyMograbi changed the title Running all tests in a file Running all tests in a file instead of specific one Jul 11, 2017
@wswebcreation
Copy link
Collaborator

Hi @GuyMograbi

Tnx for the question and for the info. For what I understand from the thread is that is is possible, but not stable.

If we look at protractor-flake then it can only determine which files hold failed specs, it can't only run the failed tests in 1 file. So for example:

failing.example.spec.js
 |_ 2 failing tests
 |_ 5 passed tests

passed.example.spec.js
|_15 passed tests

In this case protractor-flake will read the console log and will see that failing.example.spec.js is failing. It will then collect the path in which the spec is stored and offers it again to Protractor. It can't offer only the 2 failing tests in failing.example.specs.js (you can't also do this manual unless you adjust the spec-file) because it (currently) can't determine which specific test failed.

@wswebcreation
Copy link
Collaborator

@GuyMograbi

Is this clear for you or do you have any other questions? I'm going to close this issue now but it's still open for discussion

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants