Skip to content

[backend][PR 2] Unit Tests / Broker Short & Logger - #126

Merged
msanlli merged 49 commits into
developfrom
backend/unit-tests
May 15, 2024
Merged

[backend][PR 2] Unit Tests / Broker Short & Logger#126
msanlli merged 49 commits into
developfrom
backend/unit-tests

Conversation

@msanlli

@msanlli msanlli commented Apr 29, 2024

Copy link
Copy Markdown
Member

Unit Tests - Broker Short & Logger

The unit tests check the status of the whole backend; they are divided into Short and Exhaustive tests. The Short only tests the overall and general performance, lacking edge cases or benchmarks, while the Exhaustive tests are more fine-tuned, testing all the backend functions, even when not vital; it also performs Benchmark tests.

[PR 1] --> Transport Short (2024-04-27)
[PR 2] --> Broker Short (2024-05-10)
[PR 3] --> Logger Short ~ 2024-05-11

  • BLCU Topic (2024-05-10)
  • Connection Topic (2024-05-10)
  • Data Topic (2024-05-10)
  • Logger Topic (2024-05-10)
  • Message Topic (2024-05-10)
  • Order Topic (2024-05-10)

@msanlli
msanlli marked this pull request as ready for review May 5, 2024 15:22

@jmaralo jmaralo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests should also check that the output is correct. That is, check in the mock server/client that a message is received and that the format matches the one intended.

Also I don't see the ClientMessage tests checking any output, those should also check something more meaningful

@msanlli
msanlli marked this pull request as draft May 12, 2024 15:45
@msanlli
msanlli marked this pull request as ready for review May 13, 2024 15:05
@msanlli
msanlli requested a review from jmaralo May 13, 2024 15:05
@msanlli msanlli changed the title [backend][PR 2] Unit Tests / Broker Short [backend][PR 2] Unit Tests / Broker Short & Logger May 15, 2024
jmaralo
jmaralo previously approved these changes May 15, 2024
Comment thread backend/pkg/broker/topics/blcu/blcu_test.go Outdated
@msanlli
msanlli merged commit c284f1a into develop May 15, 2024
@msanlli
msanlli deleted the backend/unit-tests branch May 15, 2024 19:28
@msanlli
msanlli restored the backend/unit-tests branch May 16, 2024 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants