[TIP] Functional test framework library for python
Matthew Harelick
mharelick at fastmail.fm
Thu May 11 04:52:58 PDT 2017
Hello:
I think pytest will take care of my needs but I have to get to exploring
it. I don't need a specialized framework. pyunit would be fine. I
need html output, and I am making sure I can find it in a tool before
building it myself.
--
Matthew Harelick
mharelick at fastmail.fm
On Wed, May 10, 2017, at 02:31 PM, Tim Ottinger wrote:
> Rephrase: Why do you feel like you need a specialized framework
> instead of normal python unittest or the like?>
> On Wed, May 10, 2017 at 1:30 PM Tim Ottinger
> <tottinge at gmail.com> wrote:>> On Fri, May 5, 2017 at 8:44 AM Matthew Harelick
>> <mharelick at fastmail.fm> wrote:
>>> I am sending inputs and validating messages that are received. I
>>> am creating the libraries that are connecting to message streams
>>> for the system under test. I need a test control and reporting
>>> framework hopefully written in python.>>
>> First off, I would always rather write just about anything in
>> Python too.>>
>> So, a test would be something like:
>>
>> 1) Set context for a message (maybe db, file sys, etc?)
>> 2) Send a message
>> 3) Do a set of checks on the result
>> 4) put the context back to normal
>>
>> ?
>>
>> It seems like one would write a few of these tests in python using
>> whatever library you have for the messaging, and then extract the
>> common code from the tests. After four or five, you should have all
>> the framework you need (if you're pretty diligent about refactoring).>>
>> I've done this for writing tests of stored procedures and
>> microservices, though a lot of that testing is faster if done in the
>> native app's micro-testing (unit test) framework.>>
>> Are these tests to run in the background (so performance isn't so
>> important) or on the developer's station (in which case, you want ALL
>> tests running in a handful of seconds)?>>
>> Tim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20170511/2e009b83/attachment.htm>
More information about the testing-in-python
mailing list