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

Issue 8260004: Addresses Python style issues in test_configuration.py and test_case.py (Closed)

Created:
9 years, 2 months ago by zundel
Modified:
9 years, 2 months ago
Reviewers:
ahe, ngeoffray
CC:
reviews_dartlang.org, Siggi Cherem (dart-lang)
Visibility:
Public.

Description

Addresses Python style issues in test_configuration.py and test_case.py Committed: https://code.google.com/p/dart/source/detail?r=390

Patch Set 1 : Now code should be up to python style guide rules. #

Total comments: 20

Patch Set 2 : After merge up #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -119 lines) Patch
M tools/testing/test_case.py View 1 7 chunks +35 lines, -25 lines 0 comments Download
M tools/testing/test_configuration.py View 1 10 chunks +88 lines, -94 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
zundel
This is the last of the style only changes. Next I'm going to focus on ...
9 years, 2 months ago (2011-10-13 00:51:03 UTC) #1
ahe
LGTM!
9 years, 2 months ago (2011-10-13 07:54:37 UTC) #2
ngeoffray
LGTM! And thanks for doing this. Small comments, but feel free to ignore if you ...
9 years, 2 months ago (2011-10-13 08:03:38 UTC) #3
zundel
9 years, 2 months ago (2011-10-13 11:07:43 UTC) #4
r390, Thanks for the review!

http://codereview.chromium.org/8260004/diff/1003/tools/testing/test_case.py
File tools/testing/test_case.py (right):

http://codereview.chromium.org/8260004/diff/1003/tools/testing/test_case.py#n...
tools/testing/test_case.py:19: """A test case defined by a .dart file."""
On 2011/10/13 08:03:38, ngeoffray wrote:
> Maybe say a *Test.dart file. But feel free to ignore if you disagree.

SGTM, Done.

http://codereview.chromium.org/8260004/diff/1003/tools/testing/test_case.py#n...
tools/testing/test_case.py:57: """Multiple test cases defined within a single
.dart file."""
On 2011/10/13 08:03:38, ngeoffray wrote:
> ditto

Done.

http://codereview.chromium.org/8260004/diff/1003/tools/testing/test_case.py#n...
tools/testing/test_case.py:69: """Returns True if this is a negative test
(should return FAIL)."""
On 2011/10/13 08:03:38, ngeoffray wrote:
> The comment is parenthesis is confusing, I would put it elsewhere. Maybe where
> we check on the test output? Or leave it it but extand it, like:
> 
> """Returns True if this is a negative test. A negative test passes if its
output
> is FAIL."""

Done.

http://codereview.chromium.org/8260004/diff/1003/tools/testing/test_configura...
File tools/testing/test_configuration.py (right):

http://codereview.chromium.org/8260004/diff/1003/tools/testing/test_configura...
tools/testing/test_configuration.py:28: """Configuration that looks for .dart
files in the tests/*/src dirs."""
On 2011/10/13 08:03:38, ngeoffray wrote:
> *Test.dart?

Done.

http://codereview.chromium.org/8260004/diff/1003/tools/testing/test_configura...
tools/testing/test_configuration.py:85: """Searches for .dart files that qualify
and returns list of TestCases."""
On 2011/10/13 08:03:38, ngeoffray wrote:
> ditto

Done.

http://codereview.chromium.org/8260004/diff/1003/tools/testing/test_configura...
tools/testing/test_configuration.py:104: """Returns True if the file name looks
like a test file."""
On 2011/10/13 08:03:38, ngeoffray wrote:
> looks like -> is?

Done.

http://codereview.chromium.org/8260004/diff/1003/tools/testing/test_configura...
tools/testing/test_configuration.py:108: """Populates the sections and defs
parameters if the file exists."""
On 2011/10/13 08:03:38, ngeoffray wrote:
> Change to """Reads the status file of the test suite."""?

Done.

http://codereview.chromium.org/8260004/diff/1003/tools/testing/test_configura...
tools/testing/test_configuration.py:202: """Searches for .dart files that
qualify and returns list of TestCases."""
On 2011/10/13 08:03:38, ngeoffray wrote:
> *Test.dart

Done.

http://codereview.chromium.org/8260004/diff/1003/tools/testing/test_configura...
tools/testing/test_configuration.py:232: """Searches for .dart files that
qualify and returns list of TestCases."""
On 2011/10/13 08:03:38, ngeoffray wrote:
> *Test.dart

Done.

http://codereview.chromium.org/8260004/diff/1003/tools/testing/test_configura...
tools/testing/test_configuration.py:264: """Returns True if name looks like a
test case to be compiled."""
On 2011/10/13 08:03:38, ngeoffray wrote:
> looks like -> is

Done.

Powered by Google App Engine
This is Rietveld 408576698