Acceptance test suite for the Linked Data API
This project contains a set of acceptance tests for the Linked Data API specification:
The tests are implemented in RSpec and are intended to be run against a live deployment of the API.
The goals are to:
-
Help plug any gaps in the spec
-
Provide some basic tests that can be used to check the capabilities of any arbitrary deployment
-
Provide some detailed tests that run against a known dataset and configuration to exercise a specific API implementation
-
Provide a jumping off point for testing other deployments
The project is a work in progress so subsequent to sudden and violent changes :)
The tests are implemented using RSpec. You’ll need to have Ruby 1.8, Ruby Gems, and have installed the following gems:
RSpec:
-
Ruby Behaviour Driven Test Framework
Rest Client
-
Restful Web Client
JSON
-
Ruby JSON Implementation
Siren
-
Ruby JSON & JSONQuery interpreter
Hopefully the following should handle all of that and any dependencies:
sudo gem install rspec rest-client json siren
The tests are organised into several sub-directories.
mountain
-
test suite for mountain climbing data used in Puelia Implementation
education
-
test suite for education.data.gov.uk API
To install the test config, copy the config.ttl to the relevant location in your implementation.
To run the tests do:
spec dir/name-of-spec-file.spec
To override the location of the Linked Data server, set the server
environment parameter