Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Issue 1003463002: Add json output to Junit tests. (Closed)

Created:
5 years, 9 months ago by mikecase (-- gone --)
Modified:
5 years, 8 months ago
CC:
chromium-reviews, jbudorick+watch_chromium.org, klundberg+watch_chromium.org, yfriedman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add json output to Junit tests. This change will allow us to get the test results information to our testrunner without having to parse stdout. This will fix the issue of junit tests not showing up on the test report step on our bots. BUG=465755 Committed: https://crrev.com/c638a07bf65457b24956785146d3429045a47fe2 Cr-Commit-Position: refs/heads/master@{#323255}

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : Moved JSON logic into json_results.py #

Patch Set 4 : #

Total comments: 14

Patch Set 5 : Addressed jbudorick's comments. #

Total comments: 4

Patch Set 6 : Rebase #

Patch Set 7 : Addressed kzaikin's comments. #

Total comments: 12

Patch Set 8 : Addressed nyquist's comments. #

Total comments: 2

Patch Set 9 : #

Patch Set 10 : Rebase and addressed nyquist's comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -24 lines) Patch
M build/android/pylib/junit/test_dispatcher.py View 1 2 3 4 5 6 2 chunks +13 lines, -4 lines 0 comments Download
M build/android/pylib/junit/test_runner.py View 1 2 3 4 5 2 chunks +23 lines, -16 lines 0 comments Download
M build/android/pylib/results/json_results.py View 1 2 3 4 2 chunks +66 lines, -0 lines 0 comments Download
M build/android/test_runner.py View 1 chunk +7 lines, -1 line 0 comments Download
A testing/android/junit/java/src/org/chromium/testing/local/JsonListener.java View 1 2 3 4 1 chunk +54 lines, -0 lines 0 comments Download
A testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java View 1 2 3 4 5 6 7 8 9 1 chunk +89 lines, -0 lines 0 comments Download
M testing/android/junit/java/src/org/chromium/testing/local/JunitTestArgParser.java View 6 chunks +14 lines, -0 lines 0 comments Download
M testing/android/junit/java/src/org/chromium/testing/local/JunitTestMain.java View 1 2 3 4 1 chunk +5 lines, -3 lines 0 comments Download

Messages

Total messages: 20 (5 generated)
mikecase (-- gone --)
This will fix the issue... https://code.google.com/p/chromium/issues/detail?id=465755 Basically, that issue was caused because we never called ...
5 years, 9 months ago (2015-03-11 18:37:37 UTC) #2
mikecase (-- gone --)
https://codereview.chromium.org/1003463002/diff/20001/testing/android/junit/junit_test.gyp File testing/android/junit/junit_test.gyp (right): https://codereview.chromium.org/1003463002/diff/20001/testing/android/junit/junit_test.gyp#newcode14 testing/android/junit/junit_test.gyp:14: '../../../third_party/robolectric/robolectric.gyp:robolectric_jar', Just to clarify. I need to add this ...
5 years, 9 months ago (2015-03-11 18:44:27 UTC) #3
jbudorick
https://codereview.chromium.org/1003463002/diff/60001/build/android/pylib/junit/test_runner.py File build/android/pylib/junit/test_runner.py (right): https://codereview.chromium.org/1003463002/diff/60001/build/android/pylib/junit/test_runner.py#newcode32 build/android/pylib/junit/test_runner.py:32: '%s.jar' % self._test_suite), '-json-results-file', nit: drop this onto its ...
5 years, 9 months ago (2015-03-12 19:41:49 UTC) #4
mikecase (-- gone --)
https://codereview.chromium.org/1003463002/diff/60001/build/android/pylib/junit/test_runner.py File build/android/pylib/junit/test_runner.py (right): https://codereview.chromium.org/1003463002/diff/60001/build/android/pylib/junit/test_runner.py#newcode32 build/android/pylib/junit/test_runner.py:32: '%s.jar' % self._test_suite), '-json-results-file', On 2015/03/12 19:41:49, jbudorick wrote: ...
5 years, 9 months ago (2015-03-13 01:07:24 UTC) #5
kzaikin
https://codereview.chromium.org/1003463002/diff/80001/build/android/test_runner.py File build/android/test_runner.py (right): https://codereview.chromium.org/1003463002/diff/80001/build/android/test_runner.py#newcode771 build/android/test_runner.py:771: results, exit_code = junit_dispatcher.RunTests(tests, runner_factory) In fact your dispatcher ...
5 years, 9 months ago (2015-03-19 09:12:11 UTC) #7
kzaikin
https://codereview.chromium.org/1003463002/diff/80001/testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java File testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java (right): https://codereview.chromium.org/1003463002/diff/80001/testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java#newcode80 testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java:80: return test.getClassName() + "." + test.getMethodName(); Please use # ...
5 years, 9 months ago (2015-03-20 11:38:18 UTC) #8
mikecase (-- gone --)
Adding nyquist for review of testing/android https://codereview.chromium.org/1003463002/diff/80001/build/android/test_runner.py File build/android/test_runner.py (right): https://codereview.chromium.org/1003463002/diff/80001/build/android/test_runner.py#newcode771 build/android/test_runner.py:771: results, exit_code = ...
5 years, 9 months ago (2015-03-23 20:38:45 UTC) #10
nyquist
https://codereview.chromium.org/1003463002/diff/120001/testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java File testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java (right): https://codereview.chromium.org/1003463002/diff/120001/testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java#newcode10 testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java:10: Nit: I don't think this empty line should be ...
5 years, 9 months ago (2015-03-23 23:53:48 UTC) #11
mikecase (-- gone --)
https://codereview.chromium.org/1003463002/diff/120001/testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java File testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java (right): https://codereview.chromium.org/1003463002/diff/120001/testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java#newcode10 testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java:10: On 2015/03/23 23:53:48, nyquist wrote: > Nit: I don't ...
5 years, 9 months ago (2015-03-24 00:35:24 UTC) #12
nyquist
testing/android lgtm https://codereview.chromium.org/1003463002/diff/140001/testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java File testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java (right): https://codereview.chromium.org/1003463002/diff/140001/testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java#newcode77 testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java:77: } catch (Exception e) { Is this ...
5 years, 8 months ago (2015-03-31 22:16:55 UTC) #13
mikecase (-- gone --)
https://codereview.chromium.org/1003463002/diff/140001/testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java File testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java (right): https://codereview.chromium.org/1003463002/diff/140001/testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java#newcode77 testing/android/junit/java/src/org/chromium/testing/local/JsonLogger.java:77: } catch (Exception e) { On 2015/03/31 22:16:55, nyquist ...
5 years, 8 months ago (2015-03-31 23:20:29 UTC) #14
jbudorick
build/android lgtm
5 years, 8 months ago (2015-04-01 01:21:34 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1003463002/180001
5 years, 8 months ago (2015-04-01 14:50:21 UTC) #18
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 8 months ago (2015-04-01 16:35:47 UTC) #19
commit-bot: I haz the power
5 years, 8 months ago (2015-04-01 16:36:25 UTC) #20
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/c638a07bf65457b24956785146d3429045a47fe2
Cr-Commit-Position: refs/heads/master@{#323255}

Powered by Google App Engine
This is Rietveld 408576698