Improve tests
Description
Create a test server with multiple basic and complex features/commands/properties/data types
-
Basic types (String, Integer, ...) -
Complex/custom types (List, Structure, ...) -
Constrained types -
Observable commands -
Observable properties -
Error handling
Also, improve the already existing test cases:
-
Use Catch2's GENERATE
macro with some random values -
Test edge cases -
Test wrong input
Additionally, add basic unit tests for the operator overloads of SiLA Data Types and Properties when they use the Data Types as the underlying type
-
arithmetic operators with rhs = SiLA Type
andlhs = C++ trivial type
-
arithmetic operators with rhs = trivial type
andlhs = C++ SiLA Type
-
arithmetic operators with rhs = SiLA Type
andlhs = C++ SiLA Type
-
logic operators with rhs = SiLA Type
andlhs = C++ trivial type
-
logic operators with rhs = trivial type
andlhs = C++ SiLA Type
-
logic operators with rhs = SiLA Type
andlhs = C++ SiLA Type
Use cases / Benefits
Improved code quality
Proposals
Peek from sila_java's TestServer
Edited by Florian Meinicke