Digital Twin Prototypes (DTP) need emulators of sensors and actuators to replace the hardware of a physical twin (PT). Learn more about DTPs in my preprint on Techrxiv.
By using tools such as Mockito, you test your code against a mockup, but not against the interfaces used by the real system. With Docker and Socat you can proxy a serial interface on TCP/IP and test a "real" serial connection.
- Install Docker and docker-compose
- Clone the project.
git clone https://github.com/AlexanderBarbie/simple-integration-testing-example.git
- Go to the main folder
cd \path\to\simple-integration-testing-example
- Execute docker-compose
docker-compose up
- Go to the test folder in simple-driver
cd \path\to\simple-integration-testing-example\simple-driver\tests
- Execute docker-compose
docker-compose up