On 29 April 2012 15:35, David Kirkby <david....@onetel.net> wrote:
> A few ideas that might work, are below. I would add, I'm not
> suggesting they are all very good (in particular 1 and 4 are a bit
> excessive), but I mention them anyway.
Sorry, it was 2 and 4 which I feel are going too far.
This is going ta bit too far, but I mention it for completeness.
> 2) Finding sections of code which are not tested, and depreciating
> them, unless someone writes the doctests, in which case the
> depreciation can be removed.
Same with this.
> 4) Finding individuals that have written code that is not tested, and
> not merging any more patches from them unless they first add tests to
> the ALL code they have already written
But I feel the other 5 have some merrit, and all are at least worth of
discussion.
Dave
--
To post to this group, send an email to sage-...@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
On 29 April 2012 16:10, William Stein <wst...@gmail.com> wrote:
>
>
> On Sunday, April 29, 2012, David Kirkby wrote:
>> > 4) Finding individuals that have written code that is not tested, and
>> > not merging any more patches from them unless they first add tests to
>> > the ALL code they have already written
>
>
>
> I would be banned for life!
Perhaps you would agree to the number 5 I suggested earlier.
5) Finding individuals that have written code that is not tested, and
not merging any more patches from them unless they first add tests to
a number (say 5) tests for all the code they have written which is
untested.
I feel #5 is more likely to lead to a 100% doctested Sage than setting
arbitrary percentages by arbitrary dates or arbitrary version numbers.
Dave
--
To post to this group, send an email to sage-...@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
On 29 April 2012 18:00, William Stein <wst...@gmail.com> wrote:
>
>
> On Sunday, April 29, 2012, David Kirkby wrote:
>>
>> Perhaps you would agree to the number 5 I suggested earlier.
>>
>> 5) Finding individuals that have written code that is not tested, and
>> not merging any more patches from them unless they first add tests to
>> a number (say 5) tests for all the code they have written which is
>> untested.
>>
>
> I am opposed to anything that restricts an author from including good new up
> to snuff code in Sage based on any properties ir behaviour of said author.
Would you be opposed to insisting someone write one doctest for
previous code they have written, for every new patch they want merged?
I originally said 5, but would you find 1 acceptable?
Dave
--
To post to this group, send an email to sage-...@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
If you said "We want to assure that each command (or each software "unit") has at least 1 test" and
asked for enforcement proposals, maybe this makes a little bit of sense.
"100% coverage" is not what I'd call it.
Having people who wrote the code be the only person who tests it is not a great idea.
Neither is having people who know nothing much at all about the code write a test.
Does UW have a software engineering course??
RJF
--
To post to this group, send an email to sage-...@googlegroups.com
To unsubscribe from this group, send an email to sage-devel+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
If you said "We want to assure that each command (or each software "unit") has at least 1 test" and
asked for enforcement proposals, maybe this makes a little bit of sense.
"100% coverage" is not what I'd call it.
Having people who wrote the code be the only person who tests it is not a great idea.
Neither is having people who know nothing much at all about the code write a test.
Does UW have a software engineering course??
Hi Michael,
On 2012-05-02, Michael Orlitzky wrote:
> You can usually call the underscore methods directly.
I thought (i.e.: I am sure that I was repeatedly told) that calling
magical methods in a doctest is strongly discouraged. The reason is
that one purpose of doctests is educational. As a reviewer, I would
not hesitate to ask for changing such an overly explicit test, when
the doctest fails to show how the method is really supposed to be
used. Of course, `_repr_` and friends is not supposed to be called
directly - hence the indirect test.
Also, I believe that the Sage coverage script doesn't require an indication of '# indirect doctest' for doctests for underscore methods; it is assumed (I guess) that in those cases, you may very well doctest those indirectly.
Really. I completely disagree with the above quote.