VirtualTam's bookmarks

  1. 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

  2. 2016-07-06

    Behaviour-driven development test framework for Python

  3. Make continuous deployment safe by comparing before and after webpage screenshots for each release.

  4. 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!

    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
    
    1. 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

    1. Profit! Create virtualhosts with local hostnames :)
    • Test first! Test first!
  5. How to test a private or protected method with PHPUnit?

    see also: https://sebastian-bergmann.de/archives/881-Testing-Your-Privates.html