DEV Community

Discussion on: End to End Testing with Detox on React-Native

Collapse
 
willybanus profile image
Willy Banús • Edited

Hi Jeevan thank you very much for this article.

i'm new in programming i was following detox documentation and your article but when i arrive to phase 3 to build a release fro Android i always get the same error. I've tried to find-out the solution before write you a comment and i would like to know if maybe you would know what's happening. Thanks in advanced.

// What i write
aklil@DESKTOP-0E8NOCM MINGW64 /d/e2e-detox(master)
$ detox build -c android.emu.release -l verbose
detox[3736] INFO: [build.js] cd android && ./gradlew app:assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..

// The error
'.' is not recognized as an internal or external command,
operable program or batch file
detox[3736] ERROR: [cli.js] Error: Command failed: cd android && ./gradlew app:assembleRelease assembleAndroidTest -DtestBuildType=release && cd ..

After that Error i've forced reinstall npm install -g detox-cli and now it doesn't give the last error but when
i press enter after write the command:

detox build -c android.emu.release -l verbose

it keeps freeze, (it's a little advance) but it still doesn't work.

Collapse
 
fazlizekiqi profile image
Fazli Zekiqi

I am also having this problem although with iOS.
With the android however i am getting jest-runner error.
Did you find any good solution.

Collapse
 
jeevankishore profile image
Jeevan Kishore

@Fazli As i happen to mention to the comment above, I'm not entirely sure the cause of the issue in this case, i've updated the repo to accommodate the latest version of jest/detox, kindly refer the same and let me know if it works for you.

Thread Thread
 
fazlizekiqi profile image
Fazli Zekiqi

I am going to try it now.
On my iOS build however the build just freezes.
Here is my repo:
github.com/fazlizekiqi/mobileApp
I would really appreciate for some help.

Collapse
 
jeevankishore profile image
Jeevan Kishore

@willy I'm not entirely sure the cause of the issue in this case, i've updated the repo to accommodate the latest version of jest/detox, kindly refer the same and let me know if it works for you.

Collapse
 
prasanta352 profile image
prasanta352

i was facing the same issue on windows
the issue was fixed by removing the '.' from " ./gradlew"