I was looking into improving the bundle detail view today. At first I thought this would be easy, but I'm wondering if my ideas are just going to be worse.
Some background. Take a view like:
For those without proper permission you roughly have a table like:
<test run> <test> <passes> <fail> ..... "wifi-enablement results" wifi-enablement 28 2 "perf results" perf 3 5 "lava results" lava 19 1 ....
There are a couple of problems with this:
1) people have always been confused by "lava results". ie - whether or not lava was actually able to perform a test run.
2) The "why doesn't this table include testXXX" question. Where the answer is look at "lava results" and it shows testXXX failed to run.
My current thought is to update the table to include all the "lava_test_install (XXX)" test cases from the lava_results run that have failed. This way they show up (maybe bolded or highlighted in some way).
Thoughts on that? I worry the approach is going to be a bit too hard-coded. ie, you have to query something like:
models.TestResult.objects.filter( test_run = b.test_runs.filter(test__test_id='lava') ).exclude( result=0 ) You might even want to add
test_case__test_case_id__contains='lava_test'
to the exclude filter. Which means we are hard coding for "lava" as a test id and "lava_test*" as test cases.