mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #969] Continues Integration: automatic hardware tests #823
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#823
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dontsovcmc on GitHub (Nov 15, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/969
It's comfortable way to refactor library is to have a lot of tests.
I can write small software tests, but hardware tests are more interesting.
Idea:
https://github.com/rockymeza/wifi
Pros:
Cons:
@dontsovcmc commented on GitHub (Dec 2, 2019):
@tablatronix I made it =)
Now we can check pages and refactor code safety:
https://github.com/dontsovcmc/ESPWebServerTest
What is you OS? Now I support MacOS Wi-fi adapter.
@dontsovcmc commented on GitHub (Dec 5, 2019):
Look at
examples/DEV/OnDemandConfigPortaltest:https://github.com/dontsovcmc/ESPWebServerTest#wifimanager-example-test
here is the Test:
https://github.com/dontsovcmc/ESPWebServerTest/blob/master/examples/WifiManagerTest/OnDemandConfigPortal/test_configportal.py
note: please, move handleRoute(), getTime() functions upper, cause compile error
@tablatronix commented on GitHub (Dec 5, 2019):
What compile error?
@dontsovcmc commented on GitHub (Dec 5, 2019):
In C++ you should define function before use (PlatformIO works as C++).
Arduino IDE hacks this rule. So, add
before functions or mode them body upper.
@tablatronix commented on GitHub (Dec 5, 2019):
where?
@dontsovcmc commented on GitHub (Dec 5, 2019):
https://github.com/tzapu/WiFiManager/blob/development/examples/DEV/OnDemandConfigPortal/OnDemandConfigPortal.ino
@tablatronix commented on GitHub (Dec 5, 2019):
I use platformio, I get no compile errors.
@tablatronix commented on GitHub (Dec 5, 2019):
Are you compiling a copy or stream as cpp not ino ?
@dontsovcmc commented on GitHub (Dec 5, 2019):
Rename ino to cpp and compile... Platformio can eat ino?!
@tablatronix commented on GitHub (Dec 5, 2019):
Yes
@dontsovcmc commented on GitHub (Dec 5, 2019):
Nice, simplify script.