Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #31590 > unrolled thread

Re: unittest for system testing

Started byDave Angel <d@davea.name>
First post2012-10-18 01:23 -0400
Last post2012-10-18 01:23 -0400
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: unittest for system testing Dave Angel <d@davea.name> - 2012-10-18 01:23 -0400

#31590 — Re: unittest for system testing

FromDave Angel <d@davea.name>
Date2012-10-18 01:23 -0400
SubjectRe: unittest for system testing
Message-ID<mailman.2401.1350537835.27098.python-list@python.org>
On 10/17/2012 08:22 PM, Rita wrote:
> Hi,
>
> Currently, I use a shell script to test how my system behaves before I
> deploy an application. For instance, I check if fileA, fileB, and fileC
> exist and if they do I go and start up my application.
>
> This works great BUT
>
> I would like to use python and in particular unittest module to test my
> system and then deploy my app. I understand unittest is for functional
> testing but I think this too would be a case for it. Any thoughts? I am not
> looking for code in particular but just some ideas on how to use python
> better in situations like this.
>
>

You have perhaps a different meaning for deploy than I do.  An app is
deployed at installation time.  After that, it is simply run.

I think you're saying that you have some extra sanity checks that you
test before you RUN the application.  If so, why aren't they just part
of the main script?

If you're not comfortable putting it there, you could put it in a simple
module that gets imported and called by the main script.

I can't see ANY connection between this and unit testing, with or
without frameworks.  Are you planning to run your test suite each time
the user runs your application?  Can he really wait an hour or three for
it to get started?



-- 

DaveA

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web