On Mon, Dec 8, 2008 at 8:14 PM, Bill Hoffman <span dir="ltr">&lt;<a href="mailto:bill.hoffman@kitware.com">bill.hoffman@kitware.com</a>&gt;</span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
<div class="Ih2E3d"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Furthermore, the possibility remains that CxxTest &nbsp;may be able to be customized to simplify the output when running within another testing system.<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Does the &nbsp;Testing/Temporary/LastTest.log file help at all? &nbsp; So, if you run tests and there are failures, you can look at that file to see the detail. &nbsp;Maybe if ctest did something like this:<br>
The following tests FAILED:<br>
 &nbsp; &nbsp; &nbsp; 2 - unittest_addition_fail (Failed)<br>
(See Testing/Temporary/LastTest.log for details.)<br>
</blockquote>
<br>
LastTest.log is a nice thing to have but if the user has 800 unit tests I think he&#39;d prefer not to look through the entire logfile.<br>
<br>
</blockquote></div>
If you had 800 tests and 10 or so lines for each failed tests, I would think having them scroll by on the screen would be bad. &nbsp;I would rather see that there are some failures, and if I want to find them I can look in the file for them.</blockquote>
<div><br>Yes, it would definitely be a bad default for this reason (especially if they all fail) =) <br></div><div>&nbsp;</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
How about giving the user the command to run to get information for the tests that failed?<br>
<br>
(Run &quot;ctest --output-on-failure -N 2,5,9-11&quot; for details about the failed tests.) <br>
Obviously -N would also need to be implemented for this to work right (-I is kinda bloated and doesn&#39;t support multiple ranges).<br>
<br>
</blockquote></div>
We already have a -N and it does something different. &nbsp;Maybe -I can be extended. &nbsp;I would hate to bloat even more with an alternate command line option that did the same thing....</blockquote><div><br>Bill,<br><br>I&#39;m afraid that extending -I any further would yield a command that is even more complicated and confusing that it is already.&nbsp; Sometimes it&#39;s best to just start over, I&#39;m afraid.&nbsp; Users understand what &quot;2,5,9-11&quot; mean in the context of running tests.&nbsp; Obviously -I is useful when you&#39;re doing striding but other than that it is awfully complicated and looks like it has been extended to death.&nbsp; Witness the support for -I &lt;x,y,z,[a],[b],...&gt; | Test file]&nbsp; where &quot;a&quot; and &quot;b&quot; are &quot;additional tests&quot; and &quot;Test file&quot; is... actually, I have no idea what &quot;Test file&quot; is?&nbsp; Three command line options, one for specifying individual tests by number or range, one for striding, and one for the &quot;Test file&quot; would be so much more clear than one option that tries to do everything.<br>
<br>Regarding &quot;-N&quot; currently being used, how about &quot;-n&quot; for this?&nbsp; CTest seems to not have any lowercase individual character arguments.<br><br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

However, all that said, I suppose an option to output on failure would not be so bad as long as it is not the default.</blockquote><div><br>All things being equal, I actually think output on failure probably would have been a better default for most users with the current behavior of CTest being achieved through some kind of &quot;--summarize&quot; flag.&nbsp; Of course my opinion is coming as a C++ developer where if a &quot;unit test&quot; fails within CxxTest we&#39;re dealing with perhaps 15 lines of output.&nbsp; Obviously CTest does more than just unit tests.&nbsp; When you test CMake within CTest I can imagine some of the more complicated tests like bootstrap could be closer to 1500 lines of output (wouldn&#39;t want that one to fail) =)<br>
<br></div></div>-- <br>Philip Lowman<br>