testing-samples icon indicating copy to clipboard operation
testing-samples copied to clipboard

[Question] How to write tests that involves Bluetooth/Location/Wi-Fi Direct dependency?

Open Manikkumar1988 opened this issue 6 years ago • 2 comments

How to write test that has hardware dependency or Android System service dependency?

Manikkumar1988 avatar May 27 '19 01:05 Manikkumar1988

I'm also interested in this topic. Usually we can. Stub the response.

changchingchi avatar May 27 '19 01:05 changchingchi

Yeah, there are ways to mock or use the double instead of actual code.

However I couldn't any article that triggers events externally like new device found, pairing, paired events to be injected to device. Also the for the P2P connection

Manikkumar1988 avatar May 27 '19 01:05 Manikkumar1988