Closed
Bug 1074491
Opened 10 years ago
Closed 10 years ago
Run pushlog hgweb tests as part of version-control-tools test suite
Categories
(Developer Services :: Mercurial: hg.mozilla.org, defect)
Developer Services
Mercurial: hg.mozilla.org
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: gps, Assigned: gps)
References
Details
Attachments
(6 files)
(deleted),
text/x-review-board-request
|
Details | |
(deleted),
patch
|
bkero
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
bkero
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
bkero
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
bkero
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
bkero
:
review+
|
Details | Diff | Splinter Review |
We imported pushlog into version-control-tools as part of bug 1065041 earlier today. The next step is to hook up its tests to run-mercurial-tests.py so test coverage runs automatically and with little effort.
Assignee | ||
Comment 1•10 years ago
|
||
Assignee | ||
Comment 2•10 years ago
|
||
/r/173 - testing: add silentestrunner.py from Mercurial
/r/174 - pushlog: use templates from local repository
/r/175 - pushlog: don't use simplejson
/r/176 - pushlog: move tests file into tests/ subdirectory (bug 1074491)
/r/177 - pushlog: update tests to work in Mercurial testing mode (bug 1074491)
Pull down these commits:
hg pull review -r bb147fa8d2cac2a32e0befc1a1843f8698e29c0d
Assignee | ||
Comment 3•10 years ago
|
||
/r/174 - pushlog: use templates from local repository
/r/175 - pushlog: don't use simplejson
/r/176 - pushlog: move tests file into tests/ subdirectory (bug 1074491)
/r/177 - pushlog: update tests to work in Mercurial testing mode (bug 1074491)
/r/173 - hgtemplates: use proper CDATA syntax
/r/178 - pushlog: add better tests for HTML output
/r/179 - pushlog: unbust branch display (bug 1071296)
Pull down these commits:
hg pull review -r e15a58ec17f31fc10d1097e447989a2384a64840
Updated•10 years ago
|
Product: Release Engineering → Developer Services
Assignee | ||
Comment 4•10 years ago
|
||
The pushlog tests were previously attempting to clone templates for a
separate repository. Since templates are in the same repository as
pushlog now, we can just code in the relative path to them. The new code
is simpler and always works.
Attachment #8502876 -
Flags: review?(bkero)
Assignee | ||
Comment 5•10 years ago
|
||
simplejson was required back in the days before Python shipped with a
decent json package. Those days are over (json was added in Python 2.6).
This patch removes simplejson in favor of the built-in json package.
Attachment #8502879 -
Flags: review?(bkero)
Assignee | ||
Comment 6•10 years ago
|
||
The pushlog hgweb tests will be integrated with the Mercurial test
runner. To prepare for this, we move runtests.py into a location where
the test runner will automatically discover it.
Tests currently fail due to the changed location.
Attachment #8502880 -
Flags: review?(bkero)
Assignee | ||
Comment 7•10 years ago
|
||
This patch modifies the pushlog tests to work in the context of
Mercurial's test harness. This pretty much boils down to using a
different test runner to execute the tests so that tests don't spam
output.
While we were here, some dead code dealing with Python < 2.6 has been
removed.
Attachment #8502881 -
Flags: review?(bkero)
Assignee | ||
Comment 8•10 years ago
|
||
The CDATA syntax in the pushlog HTML template wasn't proper. By the
magic of lenient browser parsers, this was somehow not causing breakage.
Attachment #8502882 -
Flags: review?(bkero)
Updated•10 years ago
|
Attachment #8502882 -
Flags: review?(bkero) → review+
Comment 9•10 years ago
|
||
Comment on attachment 8502881 [details] [diff] [review]
pushlog: update tests to work in Mercurial testing mode ()
Review of attachment 8502881 [details] [diff] [review]:
-----------------------------------------------------------------
r+ as long as '+ os.path.join(here, '..', '..', '..', 'hgtemplates')))' is found to be the right path to HG templates.
Updated•10 years ago
|
Attachment #8502881 -
Flags: review?(bkero) → review+
Comment 10•10 years ago
|
||
8502881 also needs to make sure the silenttestrunner library is also present
Comment 11•10 years ago
|
||
Comment on attachment 8502879 [details] [diff] [review]
pushlog: don't use simplejson
Review of attachment 8502879 [details] [diff] [review]:
-----------------------------------------------------------------
r+, straightforward
Attachment #8502879 -
Flags: review?(bkero) → review+
Updated•10 years ago
|
Attachment #8502876 -
Flags: review?(bkero) → review+
Comment 12•10 years ago
|
||
Comment on attachment 8502880 [details] [diff] [review]
pushlog: move tests file into tests/ subdirectory ()
new location works
Attachment #8502880 -
Flags: review?(bkero) → review+
Comment 13•10 years ago
|
||
Having trouble logging into reviewboard to review the first attachment. Will update when problem is fixed.
Assignee | ||
Comment 14•10 years ago
|
||
I landed these 5 patches.
92fa6ac042cb::2571437fb159
Ignore the RB review. RB is busted.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Assignee | ||
Updated•10 years ago
|
Attachment #8497106 -
Attachment description: Review for review ID: bz://1074491/gps → MozReview Request: Review for review ID: bz://1074491/gps
Assignee | ||
Comment 15•10 years ago
|
||
/r/174 - pushlog: use templates from local repository
/r/175 - pushlog: don't use simplejson
/r/176 - pushlog: move tests file into tests/ subdirectory (bug 1074491)
/r/177 - pushlog: update tests to work in Mercurial testing mode (bug 1074491)
/r/173 - hgtemplates: use proper CDATA syntax
/r/178 - pushlog: add better tests for HTML output
/r/179 - pushlog: unbust branch display (bug 1071296)
Pull down these commits:
hg pull review -r e15a58ec17f31fc10d1097e447989a2384a64840
You need to log in
before you can comment on or make changes to this bug.
Description
•