Skip to content

Fix test suite issues and extend baudrate options#8

Merged
niwciu merged 11 commits into
mainfrom
develop
Mar 10, 2026
Merged

Fix test suite issues and extend baudrate options#8
niwciu merged 11 commits into
mainfrom
develop

Conversation

@niwciu

@niwciu niwciu commented Mar 9, 2026

Copy link
Copy Markdown
Owner

This pull request addresses several issues in the test suite and adds new functionality to the GUI, along with documentation updates. The changes ensure better code reliability and user experience.

Key Changes:
🧪 Test Suite Fixes:

  • Fixed AttributeError in ModbusParser by initializing self.bufferIndex = 0 in the init method to prevent failures in handler methods.

  • Corrected imports in GUI tests (e.g., QStyleOptionViewItem from QtWidgets instead of QtGui).

  • Added proper mocking for serial.Serial in tests to avoid real hardware access and ensure test isolation.

  • Updated assertions in parser tests (e.g., removed problematic assertions and added bufferIndex initialization) and GUI add_parsed_data method to use safe .get() for optional fields.

  • Configured pytest in pyproject.toml to measure coverage on source code (src) instead of the installed package, improving accuracy (coverage now at 95%).

🚀 Feature Enhancements:

  • Extended baudrate options in the GUI combo box to include higher speeds: 230400, 460800, and 921600, allowing support for faster serial communications.

📚 Documentation Updates:

  • Improved Polish documentation pages with standardized emojis, added missing UI section, and fixed Mermaid rendering.

  • Added application screenshots and fixed references to the main icon file.

  • Reorganized and fixed the structure of the Polish index page.

  • General documentation improvements and updates for better clarity.

Testing:

  • All 63 tests now pass successfully.

  • Code coverage is at 95%, with no regressions introduced.

Impact:
These changes improve the robustness of the test suite, add valuable user-facing features, and enhance documentation quality. The project is ready for the next release.

Related Commits: bd7b294, fdd21a2, 5352ff1, 8f15a86, 71651ef, fe9cb28, 10797e0, 9581aea, f730887

Closes: #7

niwciu and others added 11 commits June 2, 2025 09:34
…rmaid rendering

- Add emoji to all section headers in index.pl.md to match English version
- Add missing 'User Interface Overview' section to Polish docs
- Reorder sections to match consistent structure between EN and PL
- Fix Mermaid rendering by moving from extra.javascript to extra_javascript
- Add mermaid-init.js for proper initialization with theme detection
- Improve Mermaid theme switching based on Material color scheme
- Remove duplicate 'Jak To Działa' section
- Add missing emoji to Examples (📋) and Contributing (🤝) sections
- Add complete Contributing section with full content
- Add License section with fork attribution
- Add footer banner (myEmbeddedWay)
- Synchronize Polish version structure with English version
- Fix section hierarchy and improve readability
@niwciu niwciu self-assigned this Mar 9, 2026
@niwciu niwciu merged commit e416fc1 into main Mar 10, 2026
6 checks 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.

1 participant