Skip to content

Commit

Permalink
Make CI not run tests in parallel
Browse files Browse the repository at this point in the history
Seems to cause issues in CI
  • Loading branch information
DrRataplan committed Oct 26, 2024
1 parent 2a3ae23 commit 9336e4c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"build": "node ./build.js",
"ci-qt3tests": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --no-clean --require ts-node/register --require tsconfig-paths/register mocha --paths --project test/qt3tests.ts",
"ci-qt3testsxqueryx": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --no-clean --require ts-node/register --require tsconfig-paths/register mocha --paths --project test/qt3testsXQueryX.ts",
"ci-test": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --no-clean --require ts-node/register --require tsconfig-paths/register mocha \"test/specs/**/*.ts\" --parallel",
"ci-test-jscodegen": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --no-clean --require ts-node/register --require tsconfig-paths/register mocha \"test/specs/**/*.ts\" --parallel -- --jscodegen",
"ci-test": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --no-clean --require ts-node/register --require tsconfig-paths/register mocha \"test/specs/**/*.ts\"",
"ci-test-jscodegen": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --no-clean --require ts-node/register --require tsconfig-paths/register mocha \"test/specs/**/*.ts\" -- --jscodegen",
"ci-xqutstests": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --no-clean --require ts-node/register --require tsconfig-paths/register mocha test/xqutsTests.ts",
"ci-xqutstestsxqueryx": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --no-clean --require ts-node/register --require tsconfig-paths/register mocha --paths --parallel test/xqutsTestsXQueryX.ts",
"ci-xqutstestsxqueryx": "cross-env TS_NODE_PROJECT=test/tsconfig.json nyc --no-clean --require ts-node/register --require tsconfig-paths/register mocha --paths test/xqutsTestsXQueryX.ts",
"coverage": "nyc report --reporter=text-lcov",
"integrationtests": "ts-mocha --require test/testhook.js \"test/specs/parsing/**/*.ts\" --parallel",
"integrationtests": "ts-mocha --require test/testhook.js \"test/specs/parsing/**/*.ts\"",
"prepare": "npm run build",
"qt3performance": "ts-node --project test/tsconfig.json -r tsconfig-paths/register test/qt3testsBenchmark.ts",
"qt3tests": "ts-mocha --paths --project test/tsconfig.json test/qt3tests.ts",
Expand Down
8 changes: 4 additions & 4 deletions test/specs/annotation.tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ function assertValueType(
context: AnnotationContext,
followSpecificPath?: string[],
) {
const ast = parseExpression(expression, {});
const ast = parseExpression(expression, { version: 3.1 });
if (context) annotateAst(ast, context);
else annotateAst(ast, new AnnotationContext(undefined));

Expand Down Expand Up @@ -371,20 +371,20 @@ describe('Annotation counting', () => {
['b', { type: ValueType.XSINTEGER, mult: SequenceMultiplicity.EXACTLY_ONE }],
]);
it('correctly counts add expressions', () => {
const ast = parseExpression('2 + 1', {});
const ast = parseExpression('2 + 1', { version: 3.1 });
annotateAst(ast, new AnnotationContext(undefined));
const [total, annotated] = countQueryBodyAnnotations(ast);
chai.assert.equal(total, annotated);
});
it('correctly counts unannotated expressions', () => {
const ast = parseExpression('$x + 1', {});
const ast = parseExpression('$x + 1', { version: 3.1 });
annotateAst(ast, context);
const [total, annotated] = countQueryBodyAnnotations(ast);
chai.assert.equal(annotated, total);
chai.assert.equal(total, 3);
});
it('correctly counts unannotated expressions 2', () => {
const ast = parseExpression('$b + math:sin($a)', {});
const ast = parseExpression('$b + math:sin($a)', { version: 3.1 });
annotateAst(ast, context);
const [total, annotated] = countQueryBodyAnnotations(ast);
chai.assert.equal(annotated, 2);
Expand Down

0 comments on commit 9336e4c

Please sign in to comment.