Northeastern-Electric-Racing / Northeastern-Electric-Racing/Calypso

[CI] - Linux unit tests

Open
#63 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
2
Forks
2
Avg merge
6d 20h
Merged PRs (30d)
3

Description

Description

Ensure that messages are being parsed with a unit testing framework of sorts.

Acceptance Criteria

Tests the whole round trip of encodable can messages by sending a MQTT message, and decodable can messages by sending a CAN message.

Proposed Solution

Have a bash script to setup vcan0 and mosquitto. Have a rust test which sets up mqtt and can listeners, and runs a few messages through the encoder and decoder and checks on the other side.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the proposed bash setup for vcan0 and mosquitto, then locate the Rust encoder and decoder entry points. Add a test that sends an MQTT message through the round trip and a CAN message through the reverse path, checking both decoded results; done means the Linux unit test runs successfully in CI.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash, rust
Domain
ci-cd, networking, testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.