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

Run shared test from both v3 and v4 of juggler #96

Merged
merged 2 commits into from
Feb 13, 2020
Merged

Conversation

agnes512
Copy link
Contributor

@agnes512 agnes512 commented Feb 12, 2020

implements #79
Ref loopbackio/loopback-connector-postgresql#376
loopbackio/loopback-connector-mysql#390
loopbackio/loopback-connector-db2#144

Checklist

👉 Read and sign the CLA (Contributor License Agreement) 👈

  • npm test passes on your machine
  • New tests added or existing tests modified to cover all changes
  • Code conforms with the style guide
  • Commit messages are following our guidelines

@agnes512 agnes512 force-pushed the share-test branch 2 times, most recently from ca8b57c to b2ab8a4 Compare February 13, 2020 14:11
@@ -18,7 +18,7 @@
"lint": "eslint .",
"lint:fix": "eslint --fix .",
"pretest": "node pretest.js",
"test": "mocha --timeout 20000 --require test/init.js",
"test": "mocha --timeout 60000 --require test/init.js test/*.test.js node_modules/juggler-v3/test.js node_modules/juggler-v4/test.js",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: for whoever working on any similar tasks, adding timeout/making it longer may fix timing-related errors.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally, we should move the timeout configuration to test/mocha.opts or a mocha-rc file, so that we can run individual test files via npx mocha node_modules/juggler-v3/test.js and don't have to specify the timeout in CLI args.

Copy link
Contributor

@jannyHou jannyHou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@agnes512 agnes512 merged commit 42c5c85 into master Feb 13, 2020
@delete-merged-branch delete-merged-branch bot deleted the share-test branch February 13, 2020 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants