VirtualTam's bookmarks
160 bookmarks found
-
QA engineer walks into a bar
2016-08-16 QA Engineer walks into a bar. Orders a beer. Orders 0 beers. Orders 999999999 beers. Orders a lizard. Orders -1 beers. Orders a sfdeljknesv.
via https://github.com/minimaxir/big-list-of-naughty-strings via https://www.sempf.net/post/On-Testing1.aspx
-
- https://wiki.linaro.org/LAVA
- https://wiki.debian.org/LAVA
- https://lava.debian.net/
- https://lava.debian.net/static/docs/v2/index.html
- https://validation.linaro.org/static/docs/v2/first-installation.html
- https://validation.linaro.org/static/docs/v2/pipeline-admin.html
- https://validation.linaro.org/static/docs/v2/development-intro.html
- https://www.linaro.org/blog/lava-blog/lava-fundamentals/
- https://git.linaro.org/?s=lava%2Flava
-
Welcome to behave!
2016-07-06 Behaviour-driven development test framework for Python
-
The Process | CommitStrip
2016-01-08 -
- Original sources: https://bitbucket.org/BruceEckel/python-3-patterns-idioms
- Forked sources: https://bitbucket.org/MatToufoutu/python-3-patterns-idioms/src
- ReadTheDocs Fork: http://python-3-patterns-idioms-test.readthedocs.org/en/latest/index.html
-
bslatkin/dpxdt · GitHub
2015-09-17 Make continuous deployment safe by comparing before and after webpage screenshots for each release.
-
Pro: no need to setup a DNS server to test virtualhosts Con: keep in mind that all "fake" hosts will point to 127.0.0.1!
- Use /etc/hosts to declare test hosts / domains / subdomains
#<ip-address> <hostname.domain.org> <hostname> 127.0.0.1 localhost.localdomain localhost 127.0.0.1 host.localdomain host 127.0.0.1 sub.host.localdomain sub.host ::1 localhost.localdomain localhost
- Allow per-user virtualhost definition in either (depending on your distro)
/etc/httpd/conf/httpd.conf
/etc/apache2/apache2.conf
Include
/home/albert/.httpd/*.conf
- Profit! Create virtualhosts with local hostnames :)
-
Writing testable code
2015-05-12 -
Obey the testing goat...
2015-05-10 - Test first! Test first!
-
TaskBuster Django tutorial
2015-05-10 -
PHP - Testing your privates
2015-03-17 How to test a private or protected method with PHPUnit?
see also: https://sebastian-bergmann.de/archives/881-Testing-Your-Privates.html
-
Python unit testing frameworks: Nose, Pytest
2015-02-13 Python's built-in unittest module is quite cool, but a bit limited and way too verbose (read: it's quite not easy to incite developers to write unit tests)
I'm currently looking for more dev-friendly solutions, the key points being:
- writing test code should be easy and straight-forward -keep the focus on "what to test" instead of "how to transcribe a process to a test"
- parallelization! -we, spoiled developers, should make good use of our way-too-many-cores build machines...
- complete feature set!
- we don't want to just run tests...
- coverage reports (find dead/weak/untested code sections)
- output formatting (JUnit-XML seems to be quite a common format out there)
There seem to be 3 solutions in Python:
- stock unittest + project-dependent customizations / test helpers
- nosetests
- py.test
And 2 ways of gettings things done:
- keeping things stock: no external dependency, project-specific implementation...
- using a test framework: one more module in your (test) virtualenv, more concise tests, more features (// run, code coverage, etc.)
Some links:
-
Python: run specific unit tests
2015-02-13 Given your unittests are in the
tests
directory:1# run a specific test module 2python -m unittest tests.<module> 3 4# run a specific test suite 5python -m unittest tests.<module>.<class> 6 7# run a specific test 8python -m unittest tests.<module>.<class>.<test> 9 10# run tests matching a given pattern 11python -m unittest discover -s tests -p <pattern>