Skip to content

tests: dashboard testing#22

Merged
k1nho merged 4 commits intomainfrom
tests/add-testing
Apr 11, 2025
Merged

tests: dashboard testing#22
k1nho merged 4 commits intomainfrom
tests/add-testing

Conversation

@k1nho
Copy link
Collaborator

@k1nho k1nho commented Apr 3, 2025

The following addresses #21 by adding testing with pytest for the AppState class which is responsible for many operations during the dashboard's lifecycle.

  • Testing of Dashboard initialization errors when the configuration path is not found.
  • Testing of poll methods which are the main entrypoint to dahsboard updates.
  • Testing of internal methods loaders, and renderers.
  • Testing of helper methods such as last_id critical to fetch the unique id of a transition or andie record.
  • Testing of reactivity methods such as update_stateful_plot.

Other changes

Changing project structure into the following.

  • services: for all NSDF-INTERSECT services and its utils (dashboard, service, storage, gsa_loader)
  • clients: testing clients (realtime, single, transition)
  • tests: for testing, currently unit tests for dashboard.py
  • config: example configs of dashboard, service, clients, and conda environment.

Removes the mantid dependency, in favor of a custom parser for the gsa files. The parser was adapted for individual gsa files. After removing the mantid dependency, we shave off 1.5 GB off the image and CI builds are much easier since we do not need to change aarch64.

@k1nho k1nho changed the title Adding dashboard testing tests: dashboard testing Apr 3, 2025
@k1nho k1nho force-pushed the tests/add-testing branch 22 times, most recently from 49ab01c to 8d277fd Compare April 8, 2025 17:34
@k1nho k1nho linked an issue Apr 8, 2025 that may be closed by this pull request
@k1nho k1nho force-pushed the tests/add-testing branch 6 times, most recently from 856b318 to c6a8f1d Compare April 10, 2025 15:24
@k1nho k1nho force-pushed the tests/add-testing branch 6 times, most recently from c0f130e to f2af07c Compare April 10, 2025 16:05
@k1nho k1nho force-pushed the tests/add-testing branch from f2af07c to 26ce9e9 Compare April 10, 2025 16:22
@k1nho k1nho marked this pull request as ready for review April 10, 2025 17:18
@k1nho k1nho merged commit aafe651 into main Apr 11, 2025
1 check passed
@k1nho k1nho deleted the tests/add-testing branch April 14, 2025 21:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

💡 Feature: Dashboard testing

2 participants