Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(79)

Issue 1764803: Add instrumentation for collecting client-side code coverage.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 months, 3 weeks ago by isbadawi
Modified:
10 months, 1 week ago
Reviewers:
cromwellian, skybrian
CC:
google-web-toolkit-contributors_googlegroups.com
Base URL:
http://google-web-toolkit.googlecode.com/svn/
Visibility:
Public.

Description

Add instrumentation for collecting client-side code coverage.

Patch Set 1

Patch Set 2 : fix little bug in merge function

Patch Set 3 : Instrumenting literals (particularly string literals) can introduce syntax errors, so stop doing...

Patch Set 4 : Fix checkstyle warnings, add basic tests

Patch Set 5 : Ignore some syntethic AST nodes while figuring out baseline coverage

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M dev/core/src/com/google/gwt/dev/jjs/JavaToJavaScriptCompiler.java View 6 chunks +18 lines, -2 lines 0 comments Download
A dev/core/src/com/google/gwt/dev/js/BaselineCoverageGatherer.java View 1 2 3 4 1 chunk +123 lines, -0 lines 1 comment Download
A dev/core/src/com/google/gwt/dev/js/CoverageInstrumentor.java View 1 2 3 4 1 chunk +242 lines, -0 lines 0 comments Download
A dev/core/src/com/google/gwt/dev/js/CoverageVisitor.java View 1 2 3 1 chunk +161 lines, -0 lines 0 comments Download
A dev/core/test/com/google/gwt/dev/js/CoverageInstrumentorTest.java View 1 2 3 4 1 chunk +107 lines, -0 lines 0 comments Download

Messages

Total messages: 8
isbadawi
10 months, 3 weeks ago #1
isbadawi
10 months, 3 weeks ago #2
cromwellian
Sorry I've been at I/O all week, I will take a look at this as ...
10 months, 3 weeks ago #3
isbadawi
10 months, 3 weeks ago #4
isbadawi
10 months, 3 weeks ago #5
isbadawi
10 months, 1 week ago #6
skybrian
LGTM http://gwt-code-reviews.appspot.com/1764803/diff/6003/dev/core/src/com/google/gwt/dev/js/BaselineCoverageGatherer.java File dev/core/src/com/google/gwt/dev/js/BaselineCoverageGatherer.java (right): http://gwt-code-reviews.appspot.com/1764803/diff/6003/dev/core/src/com/google/gwt/dev/js/BaselineCoverageGatherer.java#newcode46 dev/core/src/com/google/gwt/dev/js/BaselineCoverageGatherer.java:46: if (System.getProperty("gwt.coverage") == null) { Maybe this if ...
10 months, 1 week ago #7
isbadawi
10 months, 1 week ago #8
On 2012/07/14 00:31:23, skybrian wrote:
> LGTM
> 
>
http://gwt-code-reviews.appspot.com/1764803/diff/6003/dev/core/src/com/google...
> File dev/core/src/com/google/gwt/dev/js/BaselineCoverageGatherer.java (right):
> 
>
http://gwt-code-reviews.appspot.com/1764803/diff/6003/dev/core/src/com/google...
> dev/core/src/com/google/gwt/dev/js/BaselineCoverageGatherer.java:46: if
> (System.getProperty("gwt.coverage") == null) {
> Maybe this if statement should be at the call site in
JavaToJavaScriptCompiler?
> It would make it easier to see that nothing happens when the property isn't
set.
> Similarly for CoverageInstrumentor.

I just went this way because this is how JsStackEmulator does it. If there's no
real reason (style/convention or otherwise) to do it that way then I agree.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld revision f51cb906c4ad+