From 23de5f2415ee68cdb6b953357cb4699d320214b4 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Wed, 8 Aug 2012 09:17:13 -0700 Subject: [PATCH] Properly group tests in output. The nose.case.Test class wraps all tests and in doing so caused the output to think all tests belonged to that class. Needed to access the nose.case.Test.test member in order to get the actual test class. --- htmloutput/htmloutput.py | 2 +- results.html | 2333 +++++++++++++++++++++----------------- 2 files changed, 1289 insertions(+), 1046 deletions(-) diff --git a/htmloutput/htmloutput.py b/htmloutput/htmloutput.py index 177cc51..6506263 100644 --- a/htmloutput/htmloutput.py +++ b/htmloutput/htmloutput.py @@ -597,7 +597,7 @@ class HtmlOutput(Plugin): rmap = {} classes = [] for n,t,o,e in result_list: - cls = t.__class__ + cls = t.test.__class__ if not rmap.has_key(cls): rmap[cls] = [] classes.append(cls) diff --git a/results.html b/results.html index 4c712a0..e22e685 100644 --- a/results.html +++ b/results.html @@ -50,7 +50,7 @@ a.popup_link:hover { font-family: "Lucida Console", "Courier New", Courier, monospace; text-align: left; font-size: 8pt; - width: 500px; + width: 90%; } } @@ -189,8 +189,8 @@ function showOutput(id, name) {

Unit Test Report

-

Start Time: 2012-08-07 17:14:53

-

Duration: 0:00:03.959132

+

Start Time: 2012-08-08 09:16:19

+

Duration: 0:00:03.950608

Status: Pass 212 Failure 1 Error 3

@@ -221,13 +221,13 @@ function showOutput(id, name) { View - - nose.case.Test: The universal test case wrapper. - 216 - 212 - 1 - 3 - Detail + + tests.v1_1.test_aggregates.AggregatesTest + 9 + 9 + 0 + 0 + Detail @@ -446,22 +446,31 @@ pt1.9: tests.v1_1.test_aggregates.AggregatesTest.test_update_with_availability_z - + + tests.v1_1.test_auth.AuthenticateAgainstKeystoneTests + 4 + 4 + 0 + 0 + Detail + + +
test_ambiguous_endpoints
- + pass -