WorldWideTelescope / wwt-web-client

The WorldWide Telescope web client lets you explore the universe in your browser.
https://worldwidetelescope.org/webclient/
MIT License
105 stars 35 forks source link

Added minimal test suite #249

Closed astrofrog closed 5 years ago

astrofrog commented 5 years ago

This adds the infrastructure for a test suite for the C# code that can be run through VisualStudio. For now I just added a simplistic test to make sure things work. I need to check if the tests get run as part of the CI automatically or whether I need to update the Azure Pipelines configuration.

astrofrog commented 5 years ago

Ok this works! On Azure you can go to the tests tab and see:

https://dev.azure.com/thomasrobitaille/wwt-web-client/_build/results?buildId=604&view=ms.vss-test-web.build-test-results-tab

I have no idea how we'd go about testing the actual rendering of WWT, but the idea here was to provide some framework for testing some of the programmatic API and base objects. In particular, I want to add tests for Table since I need to add functionality to it.

astrofrog commented 5 years ago

I was thinking as a rule of thumb that we could make files called Test.cs where is the name of the file we are testing, so e.g. ColorTest.cs has tests for Color.cs

astrofrog commented 5 years ago

Closed in favor of #250 but some of this could potentially be re-used for the Windows client