mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-04-01 13:05:38 +00:00
MeshCore Bot Tests
This directory contains all test files for the MeshCore Bot project.
Test Files
Standard Test Files
test_ble_connection.py- Tests for BLE connection functionalitytest_channels.py- Tests for channel managementtest_config_parsing.py- Tests for configuration parsingtest_config.py- General configuration teststest_contacts.py- Tests for contact managementtest_dynamic_channels.py- Tests for dynamic channel functionalitytest_event_structure.py- Tests for event structure handlingtest_get_channel.py- Tests for channel retrievaltest_installation.py- Tests for installation/setuptest_meshcore_official.py- Tests for official meshcore integrationtest_path_extraction.py- Tests for path extraction functionalitytest_path_info.py- Tests for path information handling
Utility and Analysis Tools
meshcore_packet_analyzer.py- Packet analysis and testing tooldiscover_ble_uuids.py- BLE UUID discovery utilityexample_usage.py- Example usage and demo code
Running Tests
To run tests from the project root:
# Run a specific test
python3 -m pytest tests/test_config.py
# Run all tests
python3 -m pytest tests/
# Run with verbose output
python3 -m pytest tests/ -v
Running Utility Tools
# Run packet analyzer
python3 tests/meshcore_packet_analyzer.py
# Run BLE UUID discovery
python3 tests/discover_ble_uuids.py
# Run example usage demo
python3 tests/example_usage.py demo
Note
These test files were moved from the project root to keep the main directory clean and organized.