camicroscope / caMicroscope

Digital pathology image viewer with support for human/machine generated annotations and markups.
BSD 3-Clause "New" or "Revised" License
234 stars 285 forks source link

Test for Existing caMicroscope functions #944

Open We13b-MD opened 3 months ago

We13b-MD commented 3 months ago

Title: Enhance Test Coverage: Tests for Existing caMicroscope Functions

Description:

This pull request introduces a set of automated tests for existing caMicroscope functions. These tests aim to improve the codebase's maintainability, reliability, and developer confidence.

Details:

Focus: The focus of this pull request is on testing existing functionalities within caMicroscope, not implementing new features. Tested Functions: they include the uicallback, loader and toolbar test Testing Framework: Testing framework or library used for writing the tests is Jest Test Coverage: loader.test.js: loadertest Toolbar.test.js

toolbartest

uicallback.test.js uicallbacktest

Benefits:

Early detection of regressions during future development. Increased confidence in code changes through automated verification. Improved code maintainability by documenting expected behavior. Testing Approach:

Testing approach used include Unit tests for isolated functions.