WackoWiki: Testing

https://wackowiki.org/doc     Version: 28.02.2020 11:21
Dev[link16]/Testing

Quality Assurance (QA): Test our release packages. Install them from scratch, try updates from previous versions, make sure everything is working, check if the upgrader works along the different (Repo)-Versions.

The chain breaks at the weakest link.

  1. TodoList[link1]
  2. https://wackowiki.org/lab/
  3. Setup a local Test Server[link2]

Tools

Testing

  1. Test new patches – try them out and see what breaks
  2. Do performance tests – compare versions & settings
  3. Do security audits
  4. Do benchmarks
  5. Do localization checks
  6. Check standards / spec compliance – SQL, XML, APIs, ...
    1. https://developers.google.com/speed/pagespeed/insights/
    2. https://securityheaders.io/
    3. http://validator.w3.org/nu/
    4. https://jigsaw.w3.org/css-validator/
    5. https://validator.w3.org/feed/
    6. https://web.dev/measure
    7. WAVE – Online accessibility validator[link10]
    8. http://jshint.com/
    9. https://www.google.com/webmast[...]ols/mobile-friendly/[link11]
    10. http://www.webpagetest.org/ – Test a website's performance
    11. W3C Internationalization Checker[link12]
  7. https://github.com/mozilla/readability – test with firefox reading mode
  8. Test integration – does the new version work with all scripts & dbs?

Debugging

  1. check error logs
    1. \apache\logs\error.log
    2. \php\logs\php_error_log
  2. set 'debug' in secondary config to 3
  3. set PHP_ERROR_REPORTING in config/constants.php
    define('PHP_ERROR_REPORTING',	5); // PHP error reporting: 0 - off, 6 - all
    1. Fatal error
    2. Parse error
    3. Warning
    4. Notice

Debug functions

  1. to write a parameter in the debug log 
    • Ut::dbg('debug_variable', $parameter);
  2. add debug output to DEBUG file and popup-window in browser
    • Diag::dbg($parameter);
    • to highlight the debug output in the console add '[BLUE|GOLD|ORANGE|RED]' as the first argument
      • e.g. Diag::dbg('GOLD', $parameter);

In both cases it writes the $parameter to the log in the main directory wacko/DEBUG when the config debug is enabled.
Be aware the log isn't emptied automatically. Ensure that the file wacko/DEBUG can be created and is writable.
touch DEBUG
chmod 0664 DEBUG



Test version:
wacko.r6.0.7.zip[link13] (1.9 MiB)


Please download the program, take it for a test-drive and tell us what you think.
BETA versions are always for testing purposes only.

Development version
wacko.tar.gz[link14] (see Repository[link15])


Keep in mind, that this is still an alpha version – so be advised to not use it for production data!