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

Output results in xml #92

Open
Dre-Tas opened this issue Sep 30, 2020 · 4 comments
Open

Output results in xml #92

Dre-Tas opened this issue Sep 30, 2020 · 4 comments

Comments

@Dre-Tas
Copy link

Dre-Tas commented Sep 30, 2020

Hi everyone and thanks for the amazing project!

We forked this project to create a runner for Revit (architectural modelling software) and it's working great so far.
The issue we're having now is that, to implement CI pipelines, we're trying to spit out an xml results file that will be then read by Azure.

Does this runner do that?
I had a look at the code but couldn't really find anything, so I thought I'd ask in case I missed something. In case it doesn't, would you know what should I do and what xUnit APIs I should use to implement that?

Thanks!

@Pilchie
Copy link
Owner

Pilchie commented Oct 2, 2020

Hi,

I'm not sure exactly what content you want to have in the xml files, but for basic logging of what tests are run and their status, you probably want to implement a BaseTestRunsink to get notified of when individual tests start and stop.

@Dre-Tas
Copy link
Author

Dre-Tas commented Oct 2, 2020

Thanks @Pilchie for the quick reply!

Yes something basic that I can use for CI (unfortunately I'm not too expert in this field yet so not 100% sure what I'll need) is good.

I'm thinking probably something like what's in the link at the bottom of the first post here:
xunit/xunit#1534

Do you happen to have some sample code that shows how to use that class?

Thanks,

Andrea

@Pilchie
Copy link
Owner

Pilchie commented Oct 3, 2020

It's used here to update the UI.

@Dre-Tas
Copy link
Author

Dre-Tas commented Oct 6, 2020

Thanks @Pilchie for sharing that.

I just managed to have a good look at it, but I'm really struggling to understand how I should be using that in order to get the XML summary out....
Any help?

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