This document provides instructions for installing dependencies and running unit tests for the sense-sdx module.
-
Clone the repository:
git clone https://github.com/your-repo/sense-sdx.git cd sense-sdx -
Create and activate a virtual environment (optional but recommended):
python3 -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install the required dependencies along with the test dependencies using
pip:pip install .[test]
Alternatively, you can install in editable mode with test dependencies:
pip install -e .[test]
To run the unit tests for the
sense-sdxmodule, use the following command:python -m unittest discover -s tests
This command will automatically discover and execute all test cases in the
testsdirectory. Ensure that you are in the root directory of the repository when running this command.To run an individual test case, specify the test module and test class/method. For example:
python -m unittest tests.test_module.TestClass.test_method
Replace
tests.test_module,TestClass, andtest_methodwith the appropriate module, class, and method names for the test you want to run.