Comments (4)
I'm pretty happy with the standard unittest. unittests don't validate the "error freeness" of code but verify behaviour changes. As such, the console output of tests is only interesting if a test fails indeed. I'll turn down the logging for now. I ran pytest on the project and it seems to not detect the existing tests (at least not automatically), but exits gracefully with no error reported. Running nose
however finds all the tests and hides console output unless a test fails. nose
requires no code changes other than maybe depending on nose for running the tests in the setup.py script. Would that be a compromise that satisfies you? On a side note, I do prefer unittest
also because of its integration into the pydev
eclipse IDE...
from python-dyndnsc.
nose is a bit better than unittest, but py.test is a lot better. everybody moves that way currently (including projects moving from nose to py.test). ;)
usually py.test is quite compatible and discovers tests from nose (and iirc also from unittest), I'll have a look why it does not in this case.
concerning pydev integration: yeah, integration might be nice, but the question is what the bigger pain is.
I use pycharm (used vim and pydev/eclipse before) and it's quite nice. Often I run tests in a terminal window separately, but iirc pycharm integrates py.test tests nicely.
from python-dyndnsc.
I just realized nose an py.test work just fine in Eclipse! The default testsuite runner of unittest
does not capture output. I do not consider that a problem, since I'd rather not even look at the test output unless required to. Either way, running nosetests
in the top level directory works just fine for me. I don't know why py.test failed on me. I am not sure I want to debug that either.
What now?
from python-dyndnsc.
py.test detects tests based on file, function and classnames.
test_*.py
class Test*
function/method test_*
guess that is the reason why it doesn't autodiscover your stuff. we can fix that by either telling it your patterns or renaming stuff so it fits the standard patterns. please decide/tell what you prefer.
from python-dyndnsc.
Related Issues (20)
- add 'Strato.com' to presets.ini
- add support for inwx / docker config HOT 1
- dyndnsc sends an update request even though the IP hasn't changed - thus nsupdate.info flags the domain HOT 6
- AttributeError: 'IPDetectorWebCheck' object has no attribute 'names' HOT 1
- IP Updater executing a shell command
- Dependency Dashboard
- Exit code is 0 even if auth failed
- allow using a preset from the command line HOT 1
- docs tree reordering
- drop iface detector and netifaces dependency? HOT 2
- config file documentation
- add support for route53
- add syslog based logging
- add http proxy support
- Improve diagnostics HOT 1
- Error when using DuckDNS: TypeError: __init__() takes at least 4 arguments (3 given) HOT 2
- drop python 2.6 support
- drop support for python 3.3
- support update services that provide IP auto-detection
- No class named 'webcheck4' could be found HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-dyndnsc.