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

Issue 1597001: [Test Fixit] Code coverage test example. (Closed)

Created:
10 years, 8 months ago by Sean Parent
Modified:
9 years, 7 months ago
Reviewers:
petkov, kmixter1, sosa
CC:
ericli, truty, chromium-os-reviews_chromium.org, seano, Daniel Erat, sosa+cc_chromium.org, petkov+cc_chromium.org
Visibility:
Public.

Description

[Test Fixit] Code coverage test example.

Patch Set 1 #

Total comments: 23

Patch Set 2 : Fixed per code review - refactored and renames. #

Total comments: 12

Patch Set 3 : More cleanup - changed handling of perf dictionary. #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -0 lines) Patch
A client/bin/unit_test.py View 2 1 chunk +47 lines, -0 lines 4 comments Download
A client/deps/gtest/README View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
A client/deps/gtest/common.py View 1 chunk +12 lines, -0 lines 0 comments Download
A client/deps/gtest/control View 1 chunk +5 lines, -0 lines 0 comments Download
A client/deps/gtest/gtest.py View 1 1 chunk +19 lines, -0 lines 0 comments Download
A client/site_tests/example_UnitTest/control View 1 chunk +16 lines, -0 lines 0 comments Download
A client/site_tests/example_UnitTest/example_UnitTest.py View 2 1 chunk +8 lines, -0 lines 1 comment Download
A client/site_tests/example_UnitTest/src/Makefile View 1 chunk +31 lines, -0 lines 1 comment Download
A client/site_tests/example_UnitTest/src/main.cc View 1 chunk +15 lines, -0 lines 0 comments Download
A server/bin/unit_test_server.py View 1 chunk +57 lines, -0 lines 2 comments Download
A server/site_tests/example_UnitTestServer/control View 1 chunk +21 lines, -0 lines 0 comments Download
A server/site_tests/example_UnitTestServer/example_UnitTestServer.py View 2 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Sean Parent
Finally working! The next step is to pull over one of the old unit tests. ...
10 years, 8 months ago (2010-03-30 20:33:41 UTC) #1
Sean Parent
Finally working! The next step is to pull over one of the old unit tests. ...
10 years, 8 months ago (2010-03-30 20:36:00 UTC) #2
kmixter1
This seems like a good approach. I have a couple of questions. Are you planning ...
10 years, 8 months ago (2010-03-31 01:38:56 UTC) #3
petkov
http://codereview.chromium.org/1597001/diff/1/5 File client/deps/gtest/gtest.py (right): http://codereview.chromium.org/1597001/diff/1/5#newcode14 client/deps/gtest/gtest.py:14: shutil.copyfile(usr_lib + '/libgtest.a', top_dir + '/libgtest.a') On 2010/03/31 01:38:56, ...
10 years, 8 months ago (2010-03-31 04:34:42 UTC) #4
Sean Parent
Answering the general questions first - I'll get to specific comments a bit later. I'm ...
10 years, 8 months ago (2010-03-31 17:43:10 UTC) #5
sosa
http://codereview.chromium.org/1597001/diff/1/5 File client/deps/gtest/gtest.py (right): http://codereview.chromium.org/1597001/diff/1/5#newcode14 client/deps/gtest/gtest.py:14: shutil.copyfile(usr_lib + '/libgtest.a', top_dir + '/libgtest.a') Didn't you add ...
10 years, 8 months ago (2010-03-31 19:01:34 UTC) #6
kmixter1
Submitting as an example seems like a good start and I don't want to block ...
10 years, 8 months ago (2010-04-01 15:52:31 UTC) #7
Sean Parent
Lots of refactoring and renaming, I read up on python class inheritance and how to ...
10 years, 8 months ago (2010-04-08 18:21:56 UTC) #8
petkov
http://codereview.chromium.org/1597001/diff/1012/13001 File client/bin/unit_test.py (right): http://codereview.chromium.org/1597001/diff/1012/13001#newcode40 client/bin/unit_test.py:40: self.write_perf_keyval({'gtest': result.stdout}) This is not a perf keyval. If ...
10 years, 8 months ago (2010-04-08 21:01:31 UTC) #9
Sean Parent
Okay - What we have now is that the perf keyval will contain an entry ...
10 years, 8 months ago (2010-04-09 01:18:55 UTC) #10
petkov
A couple of comments, LGTM overall -- it's a good starting point. I'd suggest you ...
10 years, 8 months ago (2010-04-09 21:13:31 UTC) #11
kmixter1
LGTM Very nice. See inlined comments about the thoughts on unit testing this has helped ...
10 years, 8 months ago (2010-04-09 22:07:22 UTC) #12
Sean Parent
I cleaned up the keyval keys and went ahead and pushed. Now I'll move over ...
10 years, 8 months ago (2010-04-10 02:46:07 UTC) #13
petkov
10 years, 8 months ago (2010-04-10 04:27:51 UTC) #14
> On 2010/04/09 22:07:23, kmixter1 wrote:
> > I was under the impression that the autotest framework does not like keys
> which
> > are not valid python identifiers.  For instance a/b or even a\/b as
re.escape
> > would change it.  Certainly the constraint checking code couldn't work with
> > these.  You probably need to do some more sophisticated escaping to make
this
> > work with all of autotest.  I won't block the change for it, but beware. :)
> 
> I replaced all "." and "/" characters with "_". That should keep autotest
happy.

Just to clarify things a bit -- you can use pretty much any key name as long as
it doesn't contain '=', if you don't intend to set constraints based on the
keyvals.

If you'd like to convert paths to proper identifiers, replacing '.' and '/' with
'_' would certainly not be enough.

Powered by Google App Engine
This is Rietveld 408576698