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

Issue 2695253002: Add an integration test for edit.format. (Closed)

Created:
3 years, 10 months ago by devoncarew
Modified:
3 years, 10 months ago
CC:
reviews_dartlang.org
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Total comments: 5

Patch Set 2 : rename setup to formatTestSetup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -1 line) Patch
M pkg/analysis_server/test/integration/coverage.md View 1 chunk +1 line, -1 line 0 comments Download
A pkg/analysis_server/test/integration/edit/format_test.dart View 1 1 chunk +83 lines, -0 lines 0 comments Download
A pkg/analysis_server/test/integration/edit/test_all.dart View 1 chunk +13 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/integration/integration_tests.dart View 1 chunk +5 lines, -0 lines 0 comments Download
M pkg/analysis_server/test/integration/test_all.dart View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
devoncarew
3 years, 10 months ago (2017-02-15 14:47:52 UTC) #2
Brian Wilkerson
lgtm https://codereview.chromium.org/2695253002/diff/1/pkg/analysis_server/test/integration/edit/format_test.dart File pkg/analysis_server/test/integration/edit/format_test.dart (right): https://codereview.chromium.org/2695253002/diff/1/pkg/analysis_server/test/integration/edit/format_test.dart#newcode19 pkg/analysis_server/test/integration/edit/format_test.dart:19: String setup({bool withErrors: false}) { Perhaps a different ...
3 years, 10 months ago (2017-02-15 14:58:43 UTC) #3
scheglov
lgtm
3 years, 10 months ago (2017-02-15 15:03:53 UTC) #4
devoncarew
https://codereview.chromium.org/2695253002/diff/1/pkg/analysis_server/test/integration/edit/format_test.dart File pkg/analysis_server/test/integration/edit/format_test.dart (right): https://codereview.chromium.org/2695253002/diff/1/pkg/analysis_server/test/integration/edit/format_test.dart#newcode19 pkg/analysis_server/test/integration/edit/format_test.dart:19: String setup({bool withErrors: false}) { On 2017/02/15 14:58:42, Brian ...
3 years, 10 months ago (2017-02-15 15:22:51 UTC) #5
devoncarew
Committed patchset #2 (id:20001) manually as b1bc83b6d24e4f58266c3a6e10b8181ecdb819d9 (presubmit successful).
3 years, 10 months ago (2017-02-15 15:23:27 UTC) #7
Brian Wilkerson
https://codereview.chromium.org/2695253002/diff/1/pkg/analysis_server/test/integration/edit/format_test.dart File pkg/analysis_server/test/integration/edit/format_test.dart (right): https://codereview.chromium.org/2695253002/diff/1/pkg/analysis_server/test/integration/edit/format_test.dart#newcode62 pkg/analysis_server/test/integration/edit/format_test.dart:62: int initialPosition = readFile(pathname).indexOf('bar()'); > I slightly prefer this ...
3 years, 10 months ago (2017-02-15 15:27:54 UTC) #8
devoncarew
3 years, 10 months ago (2017-02-15 15:36:53 UTC) #9
Message was sent while issue was closed.
On 2017/02/15 15:27:54, Brian Wilkerson wrote:
>
https://codereview.chromium.org/2695253002/diff/1/pkg/analysis_server/test/in...
> File pkg/analysis_server/test/integration/edit/format_test.dart (right):
> 
>
https://codereview.chromium.org/2695253002/diff/1/pkg/analysis_server/test/in...
> pkg/analysis_server/test/integration/edit/format_test.dart:62: int
> initialPosition = readFile(pathname).indexOf('bar()');
> > I slightly prefer this as we only have to get one value back from the
> > formatTestSetup() method - the file name.
> 
> I was thinking about assigning the value to a field, not returning it.
> 
> > I/O will be pretty fast in comparison to the integration test speed.
> 
> Our time allotment for tests is very small, so anything we can do to reduce
the
> time any individual test takes will reduce the number of flaky tests we have.
> Also, test performance has a major impact on productivity.

+1 to fast tests :) The integration tests times are dominated by the analysis
server startup time - that would be a good place to look to make the tests
faster.

Powered by Google App Engine
This is Rietveld 408576698