Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #31567 > unrolled thread
| Started by | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| First post | 2012-10-18 14:30 +1100 |
| Last post | 2012-10-18 14:30 +1100 |
| 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.
Deployment tools using Python (was: unittest for system testing) Ben Finney <ben+python@benfinney.id.au> - 2012-10-18 14:30 +1100
| From | Ben Finney <ben+python@benfinney.id.au> |
|---|---|
| Date | 2012-10-18 14:30 +1100 |
| Subject | Deployment tools using Python (was: unittest for system testing) |
| Message-ID | <mailman.2384.1350531062.27098.python-list@python.org> |
Rita <rmorgan466@gmail.com> 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 Well, unittest is for unit testing (testing of small isolated units of the code). There are many definitions of “functional testing”, and I don't think ‘unittest’ is a good choice for any of them. > but I think this too would be a case for it. Reserve the term “testing” for testing the code of your application, I'd recommend. Libraries designed for “testing” are not good outside that domain. > Any thoughts? If a shell program isn't up to the job, look at deployment tools like Fabric <URL:http://pypi.python.org/pypi/Fabric/> or Salt <URL:http://pypi.python.org/pypi/salt/>. -- \ “Two hands working can do more than a thousand clasped in | `\ prayer.” —Anonymous | _o__) | Ben Finney
Back to top | Article view | comp.lang.python
csiph-web