Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update e2e tests #95

Merged
merged 4 commits into from
Oct 18, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 11 additions & 6 deletions test/e2e-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@ if (!fs.existsSync(path.join(__dirname, 'cache')))

describe('e2e tests on the test suite runner', () => {
const parsingSpecs = [
"http://w3c.github.io/rdf-tests/ntriples/manifest.ttl",
"http://w3c.github.io/rdf-tests/nquads/manifest.ttl",
"http://w3c.github.io/rdf-tests/turtle/manifest.ttl",
"http://w3c.github.io/rdf-tests/trig/manifest.ttl",
// TODO: Use this rather than explicitly listing the included manifests
// this requires supporting the RDF-MT and RDF/XML test suite
// "https://w3c.github.io/rdf-tests/rdf/rdf11/manifest.ttl",
"https://w3c.github.io/rdf-tests/rdf/rdf11/rdf-n-triples/manifest.ttl",
"https://w3c.github.io/rdf-tests/rdf/rdf11/rdf-n-quads/manifest.ttl",
"https://w3c.github.io/rdf-tests/rdf/rdf11/rdf-turtle/manifest.ttl",
"https://w3c.github.io/rdf-tests/rdf/rdf11/rdf-trig/manifest.ttl",
"https://w3c.github.io/json-ld-api/tests/toRdf-manifest.jsonld",
"https://w3c.github.io/json-ld-streaming/tests/stream-toRdf-manifest.jsonld",

Expand Down Expand Up @@ -106,7 +109,7 @@ describe('e2e tests on the test suite runner', () => {

it(`should run correctly on [${spec}]`, async () => {
config.specification = spec
const result = await runner.runManifest('http://w3c.github.io/rdf-tests/sparql/sparql11/manifest-all.ttl', queryEngine(new QueryEngine()), config);
let result = await runner.runManifest('http://w3c.github.io/rdf-tests/sparql/sparql11/manifest-all.ttl', queryEngine(new QueryEngine()), config);

// Run assertions
expect(console.log).not.toHaveBeenCalled();
Expand All @@ -126,7 +129,9 @@ describe('e2e tests on the test suite runner', () => {
// Unsupported test can be skipped
if (!spec.includes('tsv') && !spec.includes('rdf-update') && !spec.includes('service-description') && !spec.includes('protocol'))
expect(skipped).toEqual(0);


// Comunica does not support ZeroOrOne paths with a variable at the start and end
result = result.filter(r => r.test.uri !== 'http://www.w3.org/2009/sparql/docs/tests/data-sparql11/property-path/manifest#values_and_path');
jeswr marked this conversation as resolved.
Show resolved Hide resolved
expect(result.every(r => r.ok || r.skipped)).toEqual(true);

}, 190_000);
Expand Down
Loading