how to run tests?

Oystein Bjorke 5 лет назад 0
This discussion was imported from CodePlex

chronodekar wrote at 2012-07-13 08:12:

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


objo wrote at 2012-07-13 09:35:

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.


chronodekar wrote at 2012-07-13 12:35:

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


objo wrote at 2012-08-08 23:17:

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! 

CodePlex

Сервис поддержки клиентов работает на платформе UserEcho