pycroscopy / sidpy

Python utilities for storing, processing, and visualizing spectroscopic and imaging data
https://pycroscopy.github.io/sidpy/
MIT License
12 stars 14 forks source link

Unit testing for Dataset and Dimension #26

Open ssomnath opened 4 years ago

ssomnath commented 4 years ago

sidpy.Dataset is a core class in sidpy and needs to be fairly well tested as soon as possible.

ssomnath commented 4 years ago

I added ideas for testing Dataset in this file.

ssomnath commented 4 years ago

The latest PR merge added a fair bit of unit tests for these two classes. I think we need more unit testing for Dataset and Dimension to plug in remaining holes. Please consider using reports from coveralls.

Currently, the following things need additional tests:

ssomnath commented 4 years ago

@gduscher - I added a function called validate_dataset_properties() to test_dataset.py that should be fleshed out and called within each (wherever appropriate) unit test for comprehensive testing. The current rigor of the unit tests is insufficient, especially for such an important class.

We would need to do something similar for Dimension as well. As in, we would need a validate_dimension_properties() that all unit tests could simply call for a thorough validation.