Show Passing Tests
<%! import datetime %> <%def name="content_a_or_b(test, a, b)"><% if test is not False: c = a else: c = b %>${c}%def> <%def name="test_result(test, res)"> <% expect_title = "" if test.error_descript != None: expect_title = "{0} - ".format(test.error_descript) expect_title += "expected - " if test.expect_output != None: expect_title += " output: {0}, ".format(test.expect_output) if test.expect_duration != None: expect_title += " duration: {0}, ".format(test.expect_duration) if test.expect_distance != None: expect_title += " distance: {0}, ".format(test.expect_distance) if test.expect_num_legs != None: expect_title += " num_legs: {0}, ".format(test.expect_num_legs) %>
${res}
- ${test.description} (.csv line #${test.csv_line_number}) |
Planner WS
% if test.is_call(): |
Call View
% else: |
Map View
% endif (
maps.trimet.org
)
%def>
OTP Build Report: ${datetime.datetime.now().strftime("%m.%d.%Y @ %I:%M %p")}
${content_a_or_b(test_errors, 'Some tests FAILED', 'All tests are PASSING')}
%for ts in test_suites:
${ts.name}
%if ts.get_tests(): %for t in ts.get_tests(): % if t.did_test_pass(): ${test_result(test=t, res="pass")} % else: ${test_result(test=t, res="fail")} %endif %endfor %endif %endfor