Skip to content

KINGgemeenten/accessibilitymonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Accessibility Monitor

Build Status

This project contains the testing application for Gewoon Toegankelijk, the daemon to start workers through the application, and a VM for testing.

All relative paths are relative to the repository root.

Requirements

Usage

This project is a Symfony application that is built around Symfony's dependency injection component. \Triquanta\AccessibilityMonitor\Application is responsible for booting the application and building the service container.

The service container is configured in ./application/container.yml and contains service definitions and simple configuration parameters. Existing configuration can be extended and overridden by creating ./application/container_overrides.yml. Both files contain YAML container configuration.

./application/bin/tam is the application's CLI, which can control all of its functionality. It is built on Symfony's console component.

Installation

Test result metadata & results storage

  • Ensure a database has been created and its credentials are configured in the testing application's ./application/container_overrides.yml.
  • Run ./sql-dump/inspector-N.sql (where N is the highest available version number) in the database ensured in the previous step.

Testbot

  • cd ./application
  • composer install
  • cp ./container_overrides_example.yml ./container_overrides.yml and extend/override the configuration where necessary, such as for remote server information and authentication credentials.
  • Make sure that the value of the tmp_directory configration is a directory path on the system that is writable by the user under which the workers run. The path defaults to /tmp/accessibilitymonitor and can be overridden in container_overrides.yml.
  • mkdir /etc/accessibilitymonitor
  • echo $MAX > /etc/accessibilitymonitor/max_worker_count, where $MAX is the maximum number of concurrent workers for the machine.
  • echo `pwd`/bin/tam start-worker > /etc/accessibilitymonitor/worker
  • echo `pwd`/bin/tam retest > /etc/accessibilitymonitor/retest
  • cp ./scripts/accessibilitymonitor.conf /etc/init/
  • start accessibilitymonitor

Logging

System events are logged to the console output, to file, and severe events also result in emails being sent to the project maintainers. This behavior is configured in the service container.

Development

PSR-2

All code must be written according the PSR-2 guidelines.

PSR-3

Logging is done through Monolog. Its logger is used according PSR-3.

PSR-4

Class and interface autoloading is done using PSR-4 using the following namespace mappings:

Testing

The library comes with PHPUnit-based tests that can be run using ./application/phpunit.xml.dist. All tests are located in \Triquanta\Tests\AccessibilityMonitor.

The Github repository is hooked up to Travis CI, which runs the tests after pushes, or for pull requests.

Virtual machine

See ./vm/README.md.

About

Monitoring system to periodically tests websites on WCAG2

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •