Giter Site home page Giter Site logo

bbc-a11y's Introduction

WARNING - PROTOTYPE SOFTWARE

This project is still at an experimental / proof-of-concept stage. Please set your expectations appropriately, but do give us as much feedback as you can.

#BBC Accessiblity Standards

This tool runs a set of tests against a set of URLs to verify whether each one meets the BBC accessibility standards.

How to install

bbc-a11y is packaged as a Ruby gem. You'll most likely want to create a stand-alone repo to run your accessibilty tests, but you can also add it as part of an existing repo.

Prerequisites

Install Ruby and then:

gem install bundler

Adding a11y to your project's Gemfile

Create or amend your your project's Gemfile to include this line:

gem 'bbc-a11y`

Now install the gem:

bundle install

## Configuration

You'll need to configure a11y with a set of URLs to run the checks against. Create a file a11y.rb in the root of your project that looks something like this:

BBC::A11y.configure do
  page "http://bbc.co.uk"
  page "http://bbc.co.uk/news"
end

Skipping scenarios

Nobody's perfect. Use skip_scenario in the configuration to opt-out of certain checks.

BBC::A11y.configure do
  page "http://bbc.co.uk" do
    skip_scenario /W3C/
  end

  page "http://bbc.co.uk/news"
end

A11y will skip any scenarios from the specifications whose name contains that string.

Running it

Once you're configured, you can run the tests using the a11y command, from the directory where your a11y.rb configuration file is stored:

bundle exec a11y

This will pick up your a11y.rb configuration file and run the a11y checks on each page specified in your configuration. Output is printed to the console.

bbc-a11y's People

Contributors

emmajp avatar ianpouncey avatar joshrp avatar mattwynne avatar shashikant86 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.