Once an error is thrown in JS then there is no way to get any other console.logs produced by JS. This is a pain when debugging.
The console output is deleted and replaced by the error.
None of the output files have the JS console.log() outputs in them
The workaround is to comment out code that is causing the error, debug and then put the code back in again when fixed, which is painful.
I've also tried
maestro test test-error.yaml > out.txtmaestro test test-error.yaml > out.txt 2>&1
none of these options gets me the error and the console.logs at the same time.
Suggested fix:
add the JS output to the maestro.log
don't replace the console output with errors from JS, just stop the test and append any errors
Is there an existing issue for this?
Steps to reproduce
Test file
test script
Run test with
maestro test test-error.yaml
Actual results
Error message is displayed console. Console.log is not seen.
Expected results
Error message is displayed console. Console.log output should be visible somewhere
About app
no app
About environment
OSX 14.7 Sonoma arm64
Logs
Logs
``` Error: This is an error atMaestro version
1.38.1
How did you install Maestro?
install script (https://get.maestro.mobile.dev)
Anything else?
Once an error is thrown in JS then there is no way to get any other console.logs produced by JS. This is a pain when debugging.
The workaround is to comment out code that is causing the error, debug and then put the code back in again when fixed, which is painful.
I've also tried
maestro test test-error.yaml > out.txt
maestro test test-error.yaml > out.txt 2>&1
none of these options gets me the error and the console.logs at the same time.Suggested fix: