Skip to content
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

MSTestV2 real-time reporting #26

Open
angyaloliver opened this issue Mar 25, 2020 · 3 comments
Open

MSTestV2 real-time reporting #26

angyaloliver opened this issue Mar 25, 2020 · 3 comments
Assignees

Comments

@angyaloliver
Copy link

Hi @elv1s42,

I have managed to set up real-time reporting with NUnit and I was wondering whether the same is possible with MSTest (or MSTestV2). Is it possible that if I run my tests via vstest console/MSTest.exe, the report will be generated (the same way as with nunit3-console)? I also managed to make MSTest with imported .trx files work (with Ghpr.Console) and I am not sure whether I am missing something or it is not possible yet.

Thank you in advance!

@elv1s42
Copy link
Member

elv1s42 commented Mar 25, 2020

Hi @angyaloliver!

Thank you for this issue.
The short answer: This feature is not supported yet.
The long answer: When tests are running using Ghpr.NUnit package, we are using the NUnit extension point (https://github.com/nunit/docs/wiki/Event-Listeners) which helps to get real-time test results. I tried to find some similar extension points to implement a similar feature for MSTest or/and MSTestV2 but didn't find any useful information. If you know any links to MSTestV2 documentation please let me know. I wan only able to find this related document: https://github.com/Microsoft/testfx-docs/blob/master/RFCs/003-Customize-Running-Tests.md
According to this document I may need to create a custom attribute that should be used instead of the standard one in order to include tests in the report in "real-time" mode.

Thank you

@elv1s42 elv1s42 self-assigned this Mar 25, 2020
@angyaloliver
Copy link
Author

Thank you for the quick response. I will let you know if I find something.

@elv1s42
Copy link
Member

elv1s42 commented Mar 25, 2020

@angyaloliver, it looks like there are some extension points that can be used for real-time reporting in MSTestV2!

Moreover, I've raised the question about extension points about a year ago inside the MSTestV2 repository (see microsoft/testfx#626), but completely forgot about it!
🤦‍♂🤦‍♂🤦‍♂

I'm reopening this one, will try to implement the real-time reporting for MSTestV2

@elv1s42 elv1s42 reopened this Mar 25, 2020
@elv1s42 elv1s42 transferred this issue from GHPReporter/Ghpr.MSTest Mar 25, 2020
@elv1s42 elv1s42 changed the title MSTest real-time reporting MSTestV2 real-time reporting Mar 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants