Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 18th, 2005, 10:00 PM
carl.manaster@gmail.com
Guest
 
Posts: n/a
Default Integrated Testing - Peppable?

Hi,

Please excuse the intrusion from an admirer, but not a user, of Python.

I've got an idea that I think could improve the language and might be
relatively simple to implement. I've developed a prototype with a toy
language here: <https://sourceforge.net/projects/zbt/>, with screenshot
here: <https://sourceforge.net/project/screenshots.php?group_id=130278>

The idea is that if the language had testing built into it, editors
could take advantage of that to highlight, not by syntax, but by
correctness (as defined by the tests). As a side effect, coverage
coloring is also possible.

So far, I see the need for three keywords: "expect", "returns", and
"archetype". "expect" and "returns" get used together, as an
expression of what the function should return, given certain inputs.
"archetype" would define edit-type instantiable objects that could be
used in the tests. The biggest lack at present is support for void
functions.

So... Should I turn this into a PEP?

Peace,
--Carl

  #2  
Old July 18th, 2005, 10:00 PM
Jeremy Bowers
Guest
 
Posts: n/a
Default Re: Integrated Testing - Peppable?

On Wed, 02 Feb 2005 11:52:29 -0800, carl.manaster@gmail.com wrote:[color=blue]
> So... Should I turn this into a PEP?[/color]

I would think a much more productive step one would be to put together the
proposed functionality with unittest and the trace module, and use the
output of your tool to drive some sort of simple output showing what you
are talking about. (Putting together a Tk app to show coverage would be
pretty simple as long as you don't try to get too fancy.)

I'm not too optimistic about ever seeing this in the language, but without
an implementation, I think it's about 0 likelihood. But remember, that's
just my opinion.

You need the experience you'll get from the implementation to write a PEP
that has a prayer of acceptance.

At least with a tool, worst case scenario, your PEP is rejected and you
put together a module to do it anyways. If you get enough people to use
it, you might at least get the module into the standard lib, though that
is also another big step.

No prose can compare to a live, functional demonstration. I, for instance,
am not *certain* this would be useful, but I think it is the sort of thing
that if I got a taste of it I might fall in love with. (Coverage is, of
course, not a sufficient condition to know your testing is complete, but
it is a necessary one, and a graphical readout with uncovered lines
colored bright red could be quite interesting and useful, even if it isn't
initially integrated into anything.)
  #3  
Old July 18th, 2005, 10:00 PM
John Roth
Guest
 
Posts: n/a
Default Re: Integrated Testing - Peppable?

<carl.manaster@gmail.com> wrote in message
news:1107373949.960435.212020@z14g2000cwz.googlegr oups.com...[color=blue]
> Hi,
>
> Please excuse the intrusion from an admirer, but not a user, of Python.
>
> I've got an idea that I think could improve the language and might be
> relatively simple to implement. I've developed a prototype with a toy
> language here: <https://sourceforge.net/projects/zbt/>, with screenshot
> here: <https://sourceforge.net/project/screenshots.php?group_id=130278>
>
> The idea is that if the language had testing built into it, editors
> could take advantage of that to highlight, not by syntax, but by
> correctness (as defined by the tests). As a side effect, coverage
> coloring is also possible.
>
> So far, I see the need for three keywords: "expect", "returns", and
> "archetype". "expect" and "returns" get used together, as an
> expression of what the function should return, given certain inputs.
> "archetype" would define edit-type instantiable objects that could be
> used in the tests. The biggest lack at present is support for void
> functions.
>
> So... Should I turn this into a PEP?[/color]

I'd say no, for a couple of reasons. One is that there
are Eclipse plugins that do this for JUnit; they don't
require any changes to Java in order to function. They
just require JUnit, which is pretty ubuquitous.

Second, is that the IDEs aren't part of Python proper.

Outside of that, it's might be quite a good idea to
do something similar with unittest, doctest or py.test.

John Roth
[color=blue]
>
> Peace,
> --Carl
>[/color]

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles