Update CONTRIBUTING.md with Unit tests

This commit is contained in:
Daniel Öster 2025-08-31 11:44:37 +03:00 committed by GitHub
parent c252bf32cc
commit d0f74934af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,3 +38,15 @@ Or force it to check all files with
``` ```
pre-commit run --all-files pre-commit run --all-files
``` ```
## Local Unit test run
The Unit tests run gtest. Here is how to install this on Debian/Ubuntu and run it locally
```
sudo apt-get install libgtest-dev
sudo apt-get install cmake
```
Navigate to Battery-Emulator/test folder
```
sudo cmake CMakeLists.txt
sudo make
```