-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Protractor-flake running again the tests that have passed #54
Comments
Hi @rafaelcs , What do you exactly mean? Does it run alle the spec / step files again, including the spec / step-files that hold no failed tests? protractor-flake can only run a spec / stepfile which holds at least 1 failed test. It can not specifically run the failed test.This due to the log parser that will check which test from which file failed, it will then collect all the files with failed specs and run them again, leaving out the spec / step-files that don't hold any failed tests. |
I mean that, for example, I have spec1.js and spec2.js...if only the
spec1.js is failing, why spec2.js run again too?
Its my problem
Em 8 de abr de 2017 4:20 AM, "wswebcreation" <notifications@github.com>
escreveu:
… Hi @rafaelcs <https://github.com/rafaelcs> ,
What do you exactly mean? Does it run alle the spec / step files again,
including the spec / step-files that hold no failed tests?
protractor-flake can only run a spec / stepfile which holds at least 1
failed test. It can not specifically run the failed test.This due to the
log parser that will check which test from which file failed, it will then
collect all the files with failed specs and run them again, leaving out the
spec / step-files that don't hold any failed tests.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#54 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHvNk7hgQHZ_DIiIHxtaWLKr4jAPdaeJks5rtzVBgaJpZM4M3ktI>
.
|
Can you provide us the following info:
Tnx in advance |
Sorry for delay @wswebcreation My flake file:
My conf.js
On this screen, you can see that only two tests failed But when the tests ran again, all the specs were executed instead of just running the specs that failed I'm running the tests using That's my problem so far |
Hi @rafaelcs, Is this the only trace you have from your tests, because I think the specreporter is the problem here. What protractor-flake does is that it:
When I look at you log there is no logging that matches this regex of the standard parser. I think there are 3 options for you:
Hope it helps Grtz |
Recently I am also getting this error. 98 specs, 1 failure [21:37:14] I/launcher - 0 instance(s) of WebDriver still running Using standard to parse output Tests failed but no specs were found. All specs will be run again. This is very frustrating as my all specs are running again even there is only one spec failure. Here is my configuration....
==== package.json=====
===protractor.conf.js=====
And I will run gulp task to call protractor flake. Would you please check this one what is happening? |
Hi @surendraJ Can you please provide your logging so we can see what protractor-flake should parse? Tnx in advance |
@wswebcreation How can I generate the log? Is there any configuration do I need to fix to see the log? |
@surendraJ It's you console log / output from your protractor tests |
@wswebcreation here is my log I am not sure it would be helpful or not...
Using standard to parse output Tests failed but no specs were found. All specs will be run again. |
@surendraJ Is this the full log? We need to the full log because, as also mentioned above, protractor-flake reads the output from protractor to determine which steps-files failed. Based on your logging I can check what goes wrong, so it would be nice if you can provide the complete output from your tests. |
@wswebcreation It's very huge log file so all are the success log before this one and failure message and again start 2nd attempt...
|
If this is the only logging for the failure then the standard / multi parser will not detect any failures in your logging. This means it will rerun all your specs again. My assumption is that the @NickTomlin , how do you think about this? |
Hi @wswebcreation - Thanks in advance. C:\Users\wilson.palkuri\Downloads\protractor-example-master\protractor-example-master>protractor-flake --maxAttempts=2 -- conf.js
[14:53:34] I/launcher - Running 1 instances of WebDriver
[14:53:45] I/testLogger -
------------------------------------
[14:53:45] I/testLogger - [chrome #01-0] PID: 11920
[chrome #01-0] Specs: C:\Users\wilson.palkuri\Downloads\protractor-example-master\protractor-example-master\specs\friendSpec.js
[chrome #01-0]
[chrome #01-0] [14:53:38] I/direct - Using ChromeDriver directly...
[chrome #01-0] [14:53:45] I/runnerCli - Cannot find module 'chance'
[14:53:45] I/testLogger -
[14:53:45] E/launcher - Runner process exited unexpectedly with error code: 1
[14:53:46] I/launcher - 1 instance(s) of WebDriver still running
.[14:53:56] I/testLogger -
------------------------------------
[14:53:56] I/testLogger - [chrome #01-1] PID: 10200
[chrome #01-1] Specs: C:\Users\wilson.palkuri\Downloads\protractor-example-master\protractor-example-master\specs\nonAngularLoginSpec.js
[chrome #01-1]
[chrome #01-1] [14:53:49] I/direct - Using ChromeDriver directly...
[chrome #01-1] Jasmine started
[chrome #01-1] No Angular PASS
[chrome #01-1]
[chrome #01-1] non-angular login
[chrome #01-1] √ should goto friend pages on successful login
[chrome #01-1]
[chrome #01-1] Executed 1 of 1 spec SUCCESS in 1 sec.
[14:53:56] I/testLogger -
[14:53:56] I/launcher - 1 instance(s) of WebDriver still running
..[14:54:22] I/testLogger -
------------------------------------
[14:54:22] I/testLogger - [chrome #01-2] PID: 152
[chrome #01-2] Specs: C:\Users\wilson.palkuri\Downloads\protractor-example-master\protractor-example-master\specs\qsSpec.js
[chrome #01-2]
[chrome #01-2] [14:54:00] I/direct - Using ChromeDriver directly...
[chrome #01-2] Jasmine started
[chrome #01-2]
[chrome #01-2] Quality Shepherd blog
[chrome #01-2] √ should display 5 posts per page
[chrome #01-2] √ should return search results
[chrome #01-2]
[chrome #01-2] Executed 2 of 2 specs SUCCESS in 17 secs.
[14:54:22] I/testLogger -
[14:54:22] I/launcher - 0 instance(s) of WebDriver still running
[14:54:22] I/launcher - chrome #01-0 failed with exit code: 1
[14:54:22] I/launcher - chrome #01-1 passed
[14:54:22] I/launcher - chrome #01-2 passed
[14:54:22] I/launcher - overall: 1 process(es) failed to complete
[14:54:22] E/launcher - Process exited with error code 100
Using standard to parse output
Re-running tests: test attempt 2
Tests failed but no specs were found. All specs will be run again.
[14:54:27] I/launcher - Running 1 instances of WebDriver
[14:54:38] I/testLogger -
------------------------------------
[14:54:38] I/testLogger - [chrome #01-0] PID: 8196
[chrome #01-0] Specs: C:\Users\wilson.palkuri\Downloads\protractor-example-master\protractor-example-master\specs\friendSpec.js
[chrome #01-0]
[chrome #01-0] [14:54:31] I/direct - Using ChromeDriver directly...
[chrome #01-0] [14:54:38] I/runnerCli - Cannot find module 'chance'
[14:54:38] I/testLogger -
[14:54:38] E/launcher - Runner process exited unexpectedly with error code: 1
[14:54:38] I/launcher - 1 instance(s) of WebDriver still running
.[14:54:49] I/testLogger -
------------------------------------
[14:54:49] I/testLogger - [chrome #01-1] PID: 13060
[chrome #01-1] Specs: C:\Users\wilson.palkuri\Downloads\protractor-example-master\protractor-example-master\specs\nonAngularLoginSpec.js
[chrome #01-1]
[chrome #01-1] [14:54:42] I/direct - Using ChromeDriver directly...
[chrome #01-1] Jasmine started
[chrome #01-1] No Angular PASS
[chrome #01-1]
[chrome #01-1] non-angular login
[chrome #01-1] √ should goto friend pages on successful login
[chrome #01-1]
[chrome #01-1] Executed 1 of 1 spec SUCCESS in 1 sec.
[14:54:49] I/testLogger -
[14:54:50] I/launcher - 1 instance(s) of WebDriver still running
..[14:55:18] I/testLogger -
------------------------------------
[14:55:18] I/testLogger - [chrome #01-2] PID: 9324
[chrome #01-2] Specs: C:\Users\wilson.palkuri\Downloads\protractor-example-master\protractor-example-master\specs\qsSpec.js
[chrome #01-2]
[chrome #01-2] [14:54:54] I/direct - Using ChromeDriver directly...
[chrome #01-2] Jasmine started
[chrome #01-2]
[chrome #01-2] Quality Shepherd blog
[chrome #01-2] √ should display 5 posts per page
[chrome #01-2] √ should return search results
[chrome #01-2]
[chrome #01-2] Executed 2 of 2 specs SUCCESS in 18 secs.
[14:55:18] I/testLogger -
[14:55:18] I/launcher - 0 instance(s) of WebDriver still running
[14:55:18] I/launcher - chrome #01-0 failed with exit code: 1
[14:55:18] I/launcher - chrome #01-1 passed
[14:55:18] I/launcher - chrome #01-2 passed
[14:55:18] I/launcher - overall: 1 process(es) failed to complete
[14:55:18] E/launcher - Process exited with error code 100
C:\Users\wilson.palkuri\Downloads\protractor-example-master\protractor-example-master> |
Hi @wpalkuri Can you provide more info about the parser you use and the config you use? When I look at this part of your log [14:53:45] I/testLogger - [chrome #01-0] PID: 11920
[chrome #01-0] Specs: C:\Users\wilson.palkuri\Downloads\protractor-example-master\protractor-example-master\specs\friendSpec.js
[chrome #01-0]
[chrome #01-0] [14:53:38] I/direct - Using ChromeDriver directly...
[chrome #01-0] [14:53:45] I/runnerCli - Cannot find module 'chance'
[14:53:45] I/testLogger -
[14:53:45] E/launcher - Runner process exited unexpectedly with error code: 1
[14:53:46] I/launcher - 1 instance(s) of WebDriver still running
.[14:53:56] I/testLogger - I see a problem in your code you don't want to rerun, but just fix ;-) The reason why the parser (don't exactly know which one you use) is that no exception is thrown that could be picked up by the parser to determine which spec file to rerun. Are you using SpecReporter or an other tool to do the reporting? If so, try enabling the stacktrace option |
How can I configure to run only those tests that failed? Currentlyits running even the tests that passed the first time
The text was updated successfully, but these errors were encountered: