<div dir="ltr">I agree that we should test the command interface, but <div><br></div><div>a) they should be explicitly marked as interface tests.  </div><div>b) There should be MUCH fewer.</div><div>c) It should only verify that typing a particular command maps to the right core sequence of public / private API calls.  Not that the debugger functionality works as expected (since that is already tested through API tests).  </div><div>d) Results of these interface tests should also not be *verified* by the use of self.expect, but itself through the API.  (Relying on the text to be formatted a specific way is obviously problematic, as opposed to just verifying the actual state of the debugger)</div><div><br></div><div>c is probably the hardest, because it's hard to verify that a command does what you think it does without actually having it do the thing.  It's possible with some refactoring, but not somethign that can be whipped up in a day or two though.</div></div><br><div class="gmail_quote"><div dir="ltr">On Tue, Sep 15, 2015 at 4:23 PM <<a href="mailto:dawn@burble.org">dawn@burble.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">> > > > I do still think we need some tests that verify commands run, but I think those tests should focus not on doing complicated interactions with the debugger, and instead just verifying that things parse correctly and the command is configured correctly, with the underlying functionality being tested by the api tests.<br>
> > > ><br>
> > > > Thoughts?<br>
<br>
I agree that we should have both testing methods - SB API *and* commands,<br>
because we should be testing the user command interface too!<br>
<br>
Instead, to fix the Windows vs. other issue, I would suggest writing a<br>
sub-class that won't expect the missing params based on platform.<br>
<br>
In any case, there's a lot I never could figure out how to do in the SB<br>
API that I could only do via commands.  For example, how do you test<br>
that a trailing space at the end of the expr --language option's argument<br>
is trimmed in the SB API?<br>
<br>
-Dawn<br>
</blockquote></div>