NUnitLite XMLResultWriter TestResult.xml

37 views
Skip to first unread message

Chris

unread,
Apr 19, 2012, 8:25:50 AM4/19/12
to NUnitLite
Hi,

is there any possibilty to write TestResult.xml files in NUnitLite?

The roadmap lists it for 0.6.
But 0.6 is already out and there is no possibility to write this xml
files.

Has anybody an solution?
Maybe some not final code, i could use for a start?

Charlie Poole

unread,
Apr 19, 2012, 1:50:04 PM4/19/12
to nuni...@googlegroups.com, NUnit-Discuss
Hi Chris,

NUnitLite currently lives in two places.

1) The NUnitLite project, which has been released as 0.6.
2) The NUnit 3.0 project, which has released version 2.9.5 of nunitlite.

Currently, I'm working to bring the NUnitLite project into conformance with
the code that's now under NUnit. I'm hoping to reach a point where I
can release version 1.0 and then move all development over to NUnit,
where the first production release will be numbered 3.0.

Neither version of the code currently produces an XML file of results, but
the NUnit 3.0 code would be much easier to modify to produce such a
file, since it's TestResult type knows how to represent itself as XML, while
that in the NUnitLite project doesn't yet have that abilitiy.

This is a desirable feature and I'd be glad to work with you to get it
done and incorporate the result in the release. To get started, you'll
need to branch the entire nunit-3.0 project using bazaar. However, you
would only be working in the NUnitFramework solution, since that's
where nunitlite lives. The code that needs to be modified is in TextUI.cs
and most likely also CommandLineOptions.cs.

Feel free to contact me for any help with the details.

Charlie

> --
> You received this message because you are subscribed to the Google Groups "NUnitLite" group.
> To post to this group, send email to nuni...@googlegroups.com.
> To unsubscribe from this group, send email to nunitlite+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nunitlite?hl=en.
>

Charlie Poole

unread,
Apr 20, 2012, 12:26:54 AM4/20/12
to nuni...@googlegroups.com, NUnit-Discuss
Hi Chris,

So... I started looking at the NUnitLite 3.0 code and before I knew it
I had implemented
the saving of the result file. If you get the latest code, it's included.

With NUnitLite, the result is not saved by default, so you have to use
the option
-result=filename if you want it. Note that the result is saved in the
NUnit 3.0 format,
rather than NUnit 2.x.

Charlie

Charlie Poole

unread,
Apr 20, 2014, 9:26:23 AM4/20/14
to nunit-...@googlegroups.com, nuni...@googlegroups.com
The option described is used when running your NUnitLite tests, which
are normally built as an exe and send their output to the console
using code that's in the referenced nunitlite assembly. To see all
nunitlite options, run your test with the -h option.

If you are using NUnit rather than NUnitLite, the same option (plus
some variations you can see by use of /h) is available with the
nunit-console runner.

In terms of "running the tests from a testpage" can you provide some
context? NUnit itself has no particular support for this. Are you
using a third party runner? What kind of runtime platform are you
building for?

Charlie

On Mon, Apr 14, 2014 at 4:56 PM, <hill...@gmail.com> wrote:
> I am very new to nunit and nunitlite. I assume the option you list below is
> for running from a command line? Can this option also be set when running
> the tests from a testpage?
>
> thanks
>
> Dan
> "NUnit-Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nunit-discus...@googlegroups.com.
> To post to this group, send email to nunit-...@googlegroups.com.
> Visit this group at http://groups.google.com/group/nunit-discuss.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages