{"id":16219803,"url":"https://github.com/dontsovcmc/espwebservertest","last_synced_at":"2025-07-14T22:39:35.649Z","repository":{"id":78360654,"uuid":"225261843","full_name":"dontsovcmc/ESPWebServerTest","owner":"dontsovcmc","description":"Test ESP WebServer by Python scripts","archived":false,"fork":false,"pushed_at":"2019-12-05T23:06:42.000Z","size":19,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-14T01:17:33.352Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dontsovcmc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-02T01:46:32.000Z","updated_at":"2019-12-05T23:06:44.000Z","dependencies_parsed_at":"2023-06-12T03:00:41.383Z","dependency_job_id":null,"html_url":"https://github.com/dontsovcmc/ESPWebServerTest","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dontsovcmc%2FESPWebServerTest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dontsovcmc%2FESPWebServerTest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dontsovcmc%2FESPWebServerTest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dontsovcmc%2FESPWebServerTest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dontsovcmc","download_url":"https://codeload.github.com/dontsovcmc/ESPWebServerTest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247749966,"owners_count":20989712,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T11:56:06.795Z","updated_at":"2025-04-07T23:44:57.895Z","avatar_url":"https://github.com/dontsovcmc.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# Test ESP WebServer by Python scripts\n\nWith this library you can:\n\n- build firmware using Platformio \n- upload firmware using Platformio\n\n- connect to ESP8266/ESP32 Active Point\n- execute HTTP requests\n- compare web page content with templates\n\n\nlimitation: Only MacOS Wi-Fi adapter support. Please open an issues with your Wi-Fi adapter info.\n\n## Quick start\n1. install requirements by `pip install -r requirements.txt`\n2. call `$ pytest --noupload`\n\n\n## Using\n1. create test_*.py files with your tests\n2. run `pytes` with options\n\n### pytest arguments\nfor compile firmware\n- --lib - path to library you want to use\n- --dir - path to folder with firmware source files\n- --conf - path to platformio.ini file. if None use default\n- --port - upload port \n- --noupload - skip compiling and uploading firmware\n\nfor test chip\n- --ssid - chip SSID name\n- --channel - chip Wi-Fi channel\n\n## Example\n\nWe have:\n```\n/Documents/WiFiManager\n/Documents/MyProject/src/main.cpp\n/Documents/MyProject/platformio.ini\n\n/Documents/ESPWebServerTest/test_my_project.py\n\n```\n\nCall:\n`pytest --lib=/Documents/WiFiManager --dir=/Documents/YourProject --port=/dev/cu.SLAB_USBtoUART`\n\n1. move /Documents/MyProject to /Documents/ESPWebServerTest/sandbox\n2. move /Documents/WiFiManager to /Documents/ESPWebServerTest/sandbox/lib\n3. platformio run --target upload --upload-port /dev/cu.SLAB_USBtoUART\n4. call all test_ functions in test_my_project.py\n\nProfit!\n\n\n## WiFiManager example test\n\n1. open `examples/WiFiManagerTest/OnDemandConfigPortal` folder\n2. build firmware and upload it:\n`$ pytest --build --lib=/Users/user/Documents/WiFiManager --dir=/Users/user/Documents/WiFiManager/examples/DEV/OnDemandConfigPortal --port=/dev/cu.SLAB_USBtoUART`\n3. run tests:\n`$ pytest --ssid WM_ConnectAP --channel=8 --port=/dev/cu.SLAB_USBtoUART`\n3. see `logs` folder if errors\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdontsovcmc%2Fespwebservertest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdontsovcmc%2Fespwebservertest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdontsovcmc%2Fespwebservertest/lists"}