[plt-scheme] Re: PLT Scheme v370
We are doing all this for ProfessorJ already.
For HtDP Scheme languages, for which it is designed, you got the "N%
tested" for a long time, but in color. Define something. Don't add
tests. Run. You will see a lot of RED. I tell my students that this
RED means they have bugs. In other words, we don't give you a number,
instead we give you color and show where things are untested.
-- Matthias
On May 24, 2007, at 7:30 PM, Todd O'Bryan wrote:
> On Thu, 2007-05-24 at 17:45 -0400, Chris Warrington wrote:
>
>> (require (lib "testing.ss" "htdp"))
>>
>> (check-expect (+ 1 1) 2)
>> (check-expect (+ 1 1) 3)
>> (check-error (/ 1 0) "/: division by zero")
>> (check-error (/ 1 2) "/: division by zero")
>> (generate-report)
>>
>> That's pretty nice. However, I can't seem to copy text from the
>> results window.
>>
> How hard would it be to not require the (generate-report) function and
> just print the results above the first prompt in the interactions
> window. Something like:
>
> --------
> Welcome to DrScheme, v370.
> Language: Beginning Student
> Teachpack: /blah/blah/testing.ss
> 22 of 25 tests passed. (Evaluate (generate-report) for details.)
>
> The extra window was a little bit annoying to me when I played with
> it,
> and I'm afraid students may stop generating the report just so they
> don't have to close it every time they hit run.
>
> Also, while I'm wishing, how about adding another line that says,
> e.g.,
>
> 92% of code exercised by tests.
>
> Todd
>
> P.S. I think (check-expect ...) and (check-error ...) are great
> improvements over both the previous "should be" and test-box
> incarnations.
>
>
> _________________________________________________
> For list-related administrative tasks:
> http://list.cs.brown.edu/mailman/listinfo/plt-scheme