Tenon.io Integration

Tenon.io can identify 508 and WCAG 2.0 issues in any environment.

Before you use this snippet in you own Tugboat config file, register for an account on Tenon.io and add your Tenon API Key to Tugboat as a custom environment variable called TENON_API.

 1services:
 2  php:
 3    image: tugboatqa/php:8.1-apache
 4
 5    commands:
 6      init:
 7        - apt-get update
 8        - apt-get install -y jq
 9
10      online:
11        # Tenon Integration
12        - touch results.json
13        - curl -d "url=${TUGBOAT_SERVICE_URL}&key=${TENON_API}" -H Content-Type:application/x-www-form-urlencoded -H
14          Cache-Control:no-cache -X POST https://tenon.io/api/ > results.json
15        - "jq '{Summary: [.resultSummary .tests], title: .resultSet[] .errorTitle, description: .resultSet[]
16          .errorDescription, snippet: .resultSet[] .errorSnippet, ref: .resultSet[] .ref, resultTitle: .resultSet[]
17          .resultTitle, xpath: .resultSet[] .xpath}' results.json"