Skip to content

test: add automated unit tests for all unit operation DockWidgets & fix Windows OMC test mock - #137

Merged
Koyandechirag merged 4 commits into
FOSSEE:masterfrom
Kesarchauhan:test-dockwidget-mixer-splitter
Nov 12, 2026
Merged

Koyandechirag merged 4 commits into
FOSSEE:masterfrom
Kesarchauhan:test-dockwidget-mixer-splitter

Conversation

@Kesarchauhan

Copy link
Copy Markdown

Overview

  • Introduces modular, fully isolated automated unit test suites for all remaining unit operation DockWidgets (Mixer, Splitter, Flash, CompressorExpander, CompoundSeparator, ShortcutColumn, and DistillationColumn).
  • Fixes test_bin_phase_env.py::test_get_omc_path_resolution by patching platform.system, ensuring the test passes consistently across both Windows development environments and Linux CI runners.

Newly Added Test Suites

  • tests/test_dock_widget_mixer.py: Tests initialization, input parameter list, input port refreshing, and submission.
  • tests/test_dock_widget_splitter.py: Tests initialization, stream equalization, normalization, and submission.
  • tests/test_dock_widget_flash.py: Tests initialization, temperature/pressure toggle logic, and submission.
  • tests/test_dock_widget_compressor_expander.py: Tests initialization, mode switching, dynamic inputs, and submission.
  • tests/test_dock_widget_compound_separator.py: Tests initialization and submission.
  • tests/test_dock_widget_shortcut_column.py: Tests initialization and submission.
  • tests/test_dock_widget_distillation_column.py: Tests initialization and submission.

Results

  • Total test count increased from 250 to 262.
  • Local test execution: 262 passed, 0 failed.
  • Significantly improves overall code coverage across src/main/python/DockWidgets/.

@Koyandechirag
Koyandechirag merged commit 70449bf into FOSSEE:master Nov 12, 2026
1 check passed
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.

2 participants