Closed Bug 1233706 Opened 9 years ago Closed 6 years ago

Make error message more helpful if robocop test is run without robocop

Categories

(Firefox for Android Graveyard :: Testing, defect, P5)

All
Android
defect

Tracking

(firefox61 wontfix, firefox62 wontfix, firefox63 fixed)

RESOLVED FIXED
Firefox 63
Tracking Status
firefox61 --- wontfix
firefox62 --- wontfix
firefox63 --- fixed

People

(Reporter: sebastian, Assigned: petru)

References

Details

Attachments

(2 files)

If you are running a robocop test from the IDE and did not run "robocop --serve" the following exception is thrown:

> java.lang.RuntimeException: No log file specified!
> at org.mozilla.gecko.FennecNativeDriver.log(FennecNativeDriver.java:354)
> at org.mozilla.gecko.FennecNativeDriver.log(FennecNativeDriver.java:349)
> at org.mozilla.gecko.FennecNativeDriver.getFile(FennecNativeDriver.java:287)
> at org.mozilla.gecko.tests.BaseRobocopTest.setUp(BaseRobocopTest.java:154)
> at org.mozilla.gecko.tests.BaseTest.setUp(BaseTest.java:100)
> at org.mozilla.gecko.tests.ContentProviderTest.setUp(ContentProviderTest.java:229)
> at org.mozilla.gecko.tests.testDistribution.setUp(testDistribution.java:556)
> at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
> at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
> at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:529)
> at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1448)

It would be nice if we could make this a bit more helpful by printing something like "Are you running this test from an IDE? Did you forget to run robocop --serve"?
Mass closing Firefox for Android :: Testing bugs with no progress in 2017.

If this bug is important to you, please re-open.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Assignee: nobody → petru.lingurar
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
I've encountered this issue today and after a quick search I got to this ticket which helped shed light on how to properly run instrumented Robocop tests.

It would be nice to avoid searching the Internet for this.
I think this error message 
> No log file specified!
> (If you are running this test from an IDE don't forget to before run "robocop --serve")
is more descriptive and helpful regarding the issue.
Re-triaging per https://bugzilla.mozilla.org/show_bug.cgi?id=1473195

Needinfo :susheel if you think this bug should be re-triaged.
Priority: -- → P5
Attachment #8995135 - Flags: review?(sdaswani) → review?(nchen)
Comment on attachment 8995135 [details]
Bug 1233706 - Make error message more helpful for instrumented Robocop tests;

https://reviewboard.mozilla.org/r/259610/#review267412
Attachment #8995135 - Flags: review?(nchen) → review+
Keywords: checkin-needed
Pushed by shindli@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/9b025461ceed
Make error message more helpful for instrumented Robocop tests; r=jchen
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/9b025461ceed
Status: REOPENED → RESOLVED
Closed: 6 years ago6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 63
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: