3dct / open_iA

A tool for the visual analysis and processing of volumetric datasets, with a focus on industrial computed tomography.
GNU General Public License v3.0
40 stars 16 forks source link

More automated testing #41

Open codeling opened 5 years ago

codeling commented 5 years ago

Some testing currently exists: a few unit tests for small helper classes, as well as a few GUI / command line running tests. To extend the coverage, we should add at least one command line running test for every filter in open_iA. Potentially we can also test starting different tools (though this is depending on the Common Project Files feature).

codeling commented 1 month ago

As for integration tests, the following tools now have automated tests in place. These load project files with the tools enabled, which triggers loading them; in the end, a screenshot is produced and uploaded to our CDash test dashboard:

Also, there are now tests for parameters to input and output files for the command line runner.

Good candidates for further improvements:

  1. Adding a test for more (ideally all) available image filters from CommonImageFilters and Segmentation module, run via command line (see CommonImageFilters test definitions
  2. Adding a check for comparing the output of the image filters from 1. to an expected image
  3. Adding tests for other tools (e.g. Volume Player, Inspectr, ...) - these would require adding the ability to load these tools from projects file first, though!