Path: csiph.com!usenet.pasdenom.info!news.albasani.net!feeder.erje.net!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'definitions': 0.07; 'unittest': 0.07; 'python': 0.09; 'currently,': 0.09; 'skip:> 40': 0.09; 'subject:using': 0.09; 'cc:addr:python-list': 0.10; 'code).': 0.16; 'finney': 0.16; 'oct': 0.16; 'received:209.85.216.53': 0.16; 'subject:tools': 0.16; 'subject:unittest': 0.16; 'thoughts?': 0.16; 'unittests': 0.16; 'wed,': 0.16; 'wrote:': 0.17; 'deployment': 0.17; 'instance,': 0.17; 'shell': 0.18; 'app': 0.19; 'module': 0.19; 'libraries': 0.22; "i'd": 0.22; '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; 'logging': 0.27; 'message-id:@mail.gmail.com': 0.27; 'app.': 0.29; 'deploy': 0.29; 'domain.': 0.29; 'writes:': 0.29; 'framework': 0.30; 'basic': 0.30; 'code': 0.31; 'received:google.com': 0.34; 'ben': 0.35; 'exist': 0.35; 'pm,': 0.35; 'received:209.85': 0.35; 'something': 0.35; 'there': 0.35; 'but': 0.36; 'functional': 0.36; 'test': 0.36; 'too': 0.36; 'subject: (': 0.36; 'operating': 0.36; 'received:209': 0.37; 'received:209.85.216': 0.37; 'subject:: ': 0.38; 'unit': 0.38; 'build': 0.39; 'header:Received:5': 0.40; 'think': 0.40; 'your': 0.60; 'great': 0.64; 'charset:windows-1252': 0.65; 'wish': 0.70; 'suited': 0.71; 'isolated': 0.84; 'subject:system': 0.84; 'rita': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=SAe7dwYvbg+hInygEY6R6+gEVQeuOBhgbjCXEJp7/Gk=; b=H5rJ27paWjKeOSaPOMfXpQHDrWtYFz9OrA3FmPDoPpIrhh7nipdh0DzKo1uwDPCpmy sl0GMcvswQyxV9DCzUgugnNsbk6kYqbYSTT9Bfnb2jGFi4sldFPqr3ZnUMHDZxx2+niH BZH8HxYlSzmvszhLNmzc79dJfWK2QA3ZzQ2+JwQBLg2do/aETNgIbTnZ8/NOuGrZUD92 QlxXNhhk39AWl4PMyXuj61Sht4IMwN7V0TQLE/P0UeLCNEA/tU/0Mcpkh3OUsqIa1VLf hJZ/uML6C42dRGzc7e4QoZB/U8AZbOh/gzvsSNaLHZbiOBKSc2MebgtEEeEAb2u1D1Ft 3vDQ== MIME-Version: 1.0 In-Reply-To: <7wzk3kjw2h.fsf@benfinney.id.au> References: <7wzk3kjw2h.fsf@benfinney.id.au> Date: Wed, 17 Oct 2012 23:39:41 -0400 Subject: Re: Deployment tools using Python (was: unittest for system testing) From: Dwight Hutto To: Ben Finney Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 39 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1350531584 news.xs4all.nl 6883 [2001:888:2000:d::a6]:43379 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:31568 On Wed, Oct 17, 2012 at 11:30 PM, Ben Finney w= rote: > Rita writes: > >> 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. > > The operating system shell, or the deployment framework of choice, is > best suited to that I think. > >> 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 >100000000000000000000000000000000000000000 > Well, unittest is for unit testing (testing of small isolated units of > the code). There are many definitions of =93functional testing=94, and I > don't think =91unittest=92 is a good choice for any of them. > >> but I think this too would be a case for it. > > Reserve the term =93testing=94 for testing the code of your application, = I'd > recommend. Libraries designed for =93testing=94 are not good outside that > domain. > >> Any thoughts? > The unittests are just a basic framework to build upon. Logging and testing your own functions/classes is something that come in the pre-algorithm of the app you wish to deploy. --=20 Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com