how to run tests?

Jul 13, 2012 at 7:12 AM

I just checked out the source-code and built, what I assume are the Oxyplot libraries.

There is a project called "Oxyplot.Tests", which I assume contains the unit tests for this project. What tool do I need to use to run them? Or rather, HOW do I even run the tests?

The code does not look like nUnit or xUnit stuff to me.

Puzzled,
chronodekar

Coordinator
Jul 13, 2012 at 8:35 AM
Edited Jul 13, 2012 at 8:35 AM

the *.Tests assemblies contain standard NUnit tests.

Note that some of the tests are asserting on images. I have not checked in the baseline of the plot bitmaps (*.png). The baseline is generated first time the tests are executed.

Jul 13, 2012 at 11:35 AM

Ah, thank you for your reply! I opened the files "OxyAssert.cs" and "TestModels.cs" from the upper level in Visual Studio. There were no [Test] attributes or even [TestFixture]  in them and I was wondering if I missed anything.

After reading your reply, I went digging a bit deeper and found Axes/AxisTests.cs which has something I'm familiar with. :)

I'm trying to understand the code base - at least at a very high level initially, before digging further. Any suggestions on where I should start?

-chronodekar

Coordinator
Aug 8, 2012 at 10:17 PM

To understand the code base, I would look at the PlotModel, LineSeries and LinearAxis classes (and ancestor classes). See the PlotModel.Render method, that's the 'main' method of the plots!