Skip to content

Commit

Permalink
Merge pull request #66 from w3c/test
Browse files Browse the repository at this point in the history
Add more testing.
  • Loading branch information
jgraham committed Apr 29, 2016
2 parents 8a608ac + 24be79d commit 8adcfae
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 23 deletions.
5 changes: 4 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ python:
- "2.7"
- "3.5"
install:
- pip install flake8
- pip install pytest
- pip install ./html5lib
- pip install pytest-travis-fold
script: py.test manifest
script:
- py.test manifest
- flake8
39 changes: 17 additions & 22 deletions runner/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,28 +272,23 @@ def result_bodies(UAs, results_by_test):

def generate_html(UAs, results_by_test):
"""Generate all the HTML output"""
doc = h(h.html([
h.head(h.meta(charset="utf8"),
h.title("Implementation Report"),
h.link(href="report.css", rel="stylesheet")),
h.body(h.h1("Implementation Report"),
h.h2("Summary"),
summary(UAs, results_by_test),
h.h2("Full Results"),
h.table(
h.thead(
h.tr(
h.th("Test"),
h.th("Subtest"),
[h.th(UA) for UA in sorted(UAs)]
)
),
result_bodies(UAs, results_by_test)
)
)
]))

return doc
return h(h.html(
h.head(
h.meta(charset="utf8"),
h.title("Implementation Report"),
h.link(href="report.css", rel="stylesheet")),
h.body(
h.h1("Implementation Report"),
h.h2("Summary"),
summary(UAs, results_by_test),
h.h2("Full Results"),
h.table(
h.thead(
h.tr(
h.th("Test"),
h.th("Subtest"),
[h.th(UA) for UA in sorted(UAs)])),
result_bodies(UAs, results_by_test)))))


def main(filenames):
Expand Down
4 changes: 4 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[flake8]
ignore = E128,E221,E226,E231,E251,E265,E302,E303,E402,E901,F401,F821,F841
max-line-length = 141
exclude = html5lib,py,pytest,pywebsocket,six,webdriver,wptserve

0 comments on commit 8adcfae

Please sign in to comment.