Skip to content

Tests - #10

Merged
SomethingNew71 merged 5 commits into
ClassicMiniDIY:mainfrom
Barneyjm:main
Dec 28, 2025
Merged

SomethingNew71 merged 5 commits into
ClassicMiniDIY:mainfrom
Barneyjm:main

Conversation

@Barneyjm

Copy link
Copy Markdown
Contributor

No description provided.

claude and others added 4 commits December 28, 2025 18:24
- Add unit tests for units.rs covering all conversion functions
  (temperature, pressure, speed, distance, fuel economy, volume, flow, acceleration)
- Add tests for Speeduino/rusEFI binary MLG parser
- Add tests for core types (Log, Value, Channel, Meta, EcuType)
- Create integration tests that verify parsing of all supported ECU formats
  using example log files (Haltech, ECUMaster, Speeduino, rusEFI)
- Enhance GitHub Actions CI/CD workflow with:
  - Cargo caching for faster builds
  - Separate jobs for format, lint, test, build, and docs
  - Cross-platform testing (Ubuntu, Windows, macOS)
  - Release build verification
  - Documentation build check

Test coverage now includes 90 unit tests and 12 integration tests.
- Add helper functions (read_example_file, read_example_binary) that panic
  with clear error messages instead of silently skipping tests
- Add positive RomRaider detection tests and full test_romraider_parsing()
  integration test with synthetic data
- Change ECUMaster large file test to assert on format detection
- Add RomRaider to cross-format mutual exclusion test
- All tests now fail loudly when example files are missing
Wrap URLs in angle brackets to fix rustdoc::bare_urls warnings:
- src/parsers/haltech.rs: Haltech CAN protocol reference
- src/parsers/romraider.rs: RomRaider GitHub reference
@SomethingNew71
SomethingNew71 merged commit 4aba1f3 into ClassicMiniDIY:main Dec 28, 2025
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.

3 participants