-
Notifications
You must be signed in to change notification settings - Fork 34
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
refactor: convert samples test from ava to mocha #190
refactor: convert samples test from ava to mocha #190
Conversation
Thank you for opening this PR. For completeness, can you please provide a short summary of why this change is needed for those that don't want to log in to view the link you referenced. Thanks. |
@DominicKramer this is same as the other, we're trying to consistently use mocha for all the tests. |
@JustinBeckwith ok sounds good 👍 |
Hi @JustinBeckwith , |
👋 Thanks for the heads up. I think someone on @googleapis/node-team may be better suited to answer this though :) |
@JustinBeckwith the export I guess what this implies is that we cannot update the samples at the same time as adding a feature to the library – because the samples can only test released versions. IMHO, it would be unnecessary hardship for features to be split so that the sample change happens separately after the feature gets released. Either we have to figure out a better way to test samples, or live with the fact that samples will be broken until a new feature gets shipped in a release. TL;DR: this should get fixed after a new release gets shipped. |
@ofrobots That shouldn't be the case. The script we use to test samples does an |
@JustinBeckwith can you point to the script? If what you say is true, then that script is no longer working correctly. |
Sure - that's done in all of our CircleCI scripts here: Is it possible it isn't happening in the kokoro script @kinwa91? |
Actually looks like it's happening here: |
The error is unexplainable then. I'm looking into it further =) |
So here, an issue.. I am not sure if it is a problem yet.
npm run samples-tests in the parent directory.
Which installs the link again. nodejs-logging-bunyan/package.json Line 45 in 202571b
|
The sample test seems to be passing on the latest run even though the status has been updated here. |
The system test failures appear to be unrelated, and I filed an issue in #204 to track that part. |
Fixes convert all sample tests from ava to mocha #2865(googleapis/google-cloud-node#2865) (it's a good idea to open an issue first for discussion)