-
Notifications
You must be signed in to change notification settings - Fork 661
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
Is it possible to get the code coverage report for E2E testing by using Testcafe? #2778
Comments
Hi @raja1313, |
Hey Andrey:
Yep, Sure thing!
Cheers! Have a great day.
…On Thu, Sep 6, 2018 at 12:29 PM, Andrey Churkin ***@***.***> wrote:
Hi @raja1313 <https://github.com/raja1313>,
Unfortunately, we do not have built-in functionality to check code
coverage. But, I think it is a good idea, we should think about this, thank
you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2778 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AbhJb1B14vaki7J1aZtRznQsnbKpbUACks5uYMfJgaJpZM4WPDWm>
.
--
*---Warm Regards,*
*Raja Ganesh.R*
Team Lead - Quality Assurance & Quality Control.
Cogzidel Technologies Pvt Ltd.
**CONFIDENTIAL NOTICE**
This e-mail and any files transmitted with it may contain PRIVILEGED or
CONFIDENTIAL information and may be read or used only by the intended
recipient. If you are not the intended recipient of the e-mail or any of
its attachments, please be advised that you have received this e-mail in
error and that any use, dissemination, distribution, forwarding, printing,
or copying of this e-mail or any attached files is strictly prohibited. If
you have received this e-mail in error, please immediately purge it and all
attachments and notify the sender by reply e-mail
|
Hello Andrey:
I got one question for you!
Help me out! How to check the flash message by using Testcafe. And one
thing that popup doesn't have any ID or Class then how should I write the
script for that scenario.
I have attached the snapshot given below. Kindly check it out
Thanks in advance!
…On Thu, Sep 6, 2018 at 12:29 PM, Andrey Churkin ***@***.***> wrote:
Hi @raja1313 <https://github.com/raja1313>,
Unfortunately, we do not have built-in functionality to check code
coverage. But, I think it is a good idea, we should think about this, thank
you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2778 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AbhJb1B14vaki7J1aZtRznQsnbKpbUACks5uYMfJgaJpZM4WPDWm>
.
--
*---Warm Regards,*
*Raja Ganesh.R*
Team Lead - Quality Assurance & Quality Control.
Cogzidel Technologies Pvt Ltd.
**CONFIDENTIAL NOTICE**
This e-mail and any files transmitted with it may contain PRIVILEGED or
CONFIDENTIAL information and may be read or used only by the intended
recipient. If you are not the intended recipient of the e-mail or any of
its attachments, please be advised that you have received this e-mail in
error and that any use, dissemination, distribution, forwarding, printing,
or copying of this e-mail or any attached files is strictly prohibited. If
you have received this e-mail in error, please immediately purge it and all
attachments and notify the sender by reply e-mail
|
maybe we can use chrome css and js coverage for building this feature? https://developers.google.com/web/updates/2017/04/devtools-release-notes#coverage |
@armand1m thanks for provided information, it's interesting. |
@AlexKamaev if it helps, the goal here might not be to achieve 100% js test coverage through TestCafe. It could just be unused css rule detection, which would be very useful! Additionally: a common setup nowadays is to have Jest running unit tests and TestCafe running end-to-end tests. Changes that technically decrease unit test coverage but increase overall test coverage still get flagged as reducing test coverage because there's no way for systems to know what coverage end-to-end tests provide. Tools like istanbul-combine would be great to use here. Edit: not expecting a response here, no need to appease the need-response-app 😆 |
@JoshuaKGoldberg thank you for sharing your opinion. However, this feature requires a fair amount of research, so we need some time to think about it. |
I'd also like coverage support in TestCafe. Regarding this:
I don't think 100% coverage is relevant here. Having a map of what is and isn't covered (note: the map is more important than the percentage) is useful regardless of the level of coverage, and IMO 100% coverage is only reasonable through a combination of unit, functional, integration, and e2e tests, applying each where they make the most sense for the code to be tested. (Note that I'm not advocating for a 100% coverage target in general -- just saying that it's definitely a bad idea through the lens of a single type of testing.) No response needed. 🙂 |
Any update on this? |
No updates. Once we get any results, we will share them here. |
I have a couple of thoughts on this:
What do maintainers think of the istanbul.js idea? I'd be happy to share some of the work in trying out this idea, if someone can point me to where to look for how the |
I did a little bit of investigation, and I think I found the entry point that launches the I don't know yet of a good way to make that change in this codebase, but it might be enough to try the idea locally to see if it even works:
If everything is working, |
Hello @kkrull, you can launch testcafe under |
So true. Thanks for reminding me of this. It's easy to lose track of which lines of code run in the node.js process vs. in the browser. On the bright side, forgetting that detail is only made possible by the fact that Now I see why the issue is more complex than meets the eye. Maybe Istanbul or the browser itself could be configured to instrument the code that runs in the browser and track code execution, but there would need to be some integration points
Just verbalizing what you probably already knew ^^, since writing helps me think through the issue. |
Hi @raga-varicent, Could you please make a step-by-step instruction describing what we should do in order to reproduce the described behavior on our side? |
Hi @miherlosev Is this because of http transmission size limitation? How I can get it to work for larger objects? async getCoverage(filename: any){
} |
|
Hi folks, TestCafe processed the code ( |
I create a TestCafe custom reporter for generating native V8 coverage reports: npm i testcafe-reporter-coverage
|
Are you requesting a feature or reporting a bug?
Feature
What is the current behavior?
I don't see any code coverage for my 32 scripts
What is the expected behavior?
I need a code coverage report for my 32 scripts. Let's say 70% coverage #0% yet to go
Provide the test code and the tested page URL (if applicable)
Tested page URL:
Test code
Specify your
The text was updated successfully, but these errors were encountered: