Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31590
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!newsfeed.eweka.nl!eweka.nl!feeder3.eweka.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <d@davea.name> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'sanity': 0.07; 'testing,': 0.07; 'unittest': 0.07; 'python': 0.09; 'currently,': 0.09; 'frameworks.': 0.09; 'imported': 0.09; 'cc:addr:python-list': 0.10; 'run.': 0.16; 'script?': 0.16; 'started?': 0.16; 'subject:unittest': 0.16; 'thoughts?': 0.16; 'wrote:': 0.17; 'instance,': 0.17; 'script.': 0.17; 'saying': 0.18; 'shell': 0.18; 'app': 0.19; 'module': 0.19; 'comfortable': 0.20; 'putting': 0.20; 'do.': 0.21; 'deployed': 0.22; 'runs': 0.22; 'installation': 0.23; 'cc:2**0': 0.23; 'cc:no real name:2**0': 0.24; 'script': 0.24; 'testing': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply- To:1': 0.25; 'header:User-Agent:1': 0.26; 'run': 0.28; 'app.': 0.29; 'deploy': 0.29; 'this.': 0.29; 'connection': 0.30; 'checks': 0.30; 'code': 0.31; 'gets': 0.32; 'could': 0.32; "aren't": 0.33; 'hi,': 0.33; 'that,': 0.34; "can't": 0.34; 'exist': 0.35; 'so,': 0.35; 'pm,': 0.35; 'really': 0.36; 'but': 0.36; 'functional': 0.36; 'test': 0.36; 'too': 0.36; 'why': 0.37; 'subject:: ': 0.38; 'unit': 0.38; 'planning': 0.38; 'some': 0.38; 'there,': 0.38; 'received:192': 0.39; 'called': 0.39; 'received:192.168': 0.40; 'think': 0.40; 'your': 0.60; 'between': 0.63; 'different': 0.63; 'great': 0.64; 'header:Reply-To:1': 0.68; 'hour': 0.69; 'received:74.208': 0.71; 'reply-to:no real name:2**0': 0.72; 'application?': 0.84; 'received:74.208.4.194': 0.84; 'subject:system': 0.84; 'rita': 0.91 |
| Date | Thu, 18 Oct 2012 01:23:28 -0400 |
| From | Dave Angel <d@davea.name> |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 |
| MIME-Version | 1.0 |
| To | Rita <rmorgan466@gmail.com> |
| Subject | Re: unittest for system testing |
| References | <CAOF-KfiPdM_H+Nge_HFK6aBmoWKBkDM2HUeCk1D=df2z3+5fYA@mail.gmail.com> |
| In-Reply-To | <CAOF-KfiPdM_H+Nge_HFK6aBmoWKBkDM2HUeCk1D=df2z3+5fYA@mail.gmail.com> |
| Content-Type | text/plain; charset=ISO-8859-1 |
| Content-Transfer-Encoding | 7bit |
| X-Provags-ID | V02:K0:75vOqi24cW+N+Cyka1mV/kztj9b/DR6TiR2YJu2w2u9 RnGqUmboRXqE0SgEm2OWErpf3JH1KwDwNI096AsgVbQYL5QHXo vlJZUpHd94XpfhmGQXQPIR+j71o//gv54SiJ7q75rCWTS9OfPv 6/VTXr5d8MxlcE/1mKfDT0x4Ko7Zfo2loGGCH9QfbE442HOl41 ZnyIJUgJCT2VsTVS5M3kdtwJWlqJVmM/UDi1Y8OfxqelEmNJW2 3MGuJRMQFvCkFt2YhUuRQ6AquI0N/2383kMQSjrEgWCBVWyPET enVlQyhQ3p4b994imbNFO1Kpbsk4qyt1mNGnWHJNRZkPp2Mcg= = |
| Cc | python-list@python.org |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | d@davea.name |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2401.1350537835.27098.python-list@python.org> (permalink) |
| Lines | 38 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1350537835 news.xs4all.nl 6920 [2001:888:2000:d::a6]:54819 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:31590 |
Show key headers only | View raw
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
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: unittest for system testing Dave Angel <d@davea.name> - 2012-10-18 01:23 -0400
csiph-web