Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

test: add installation verification#359

Merged
DominicKramer merged 11 commits intogoogleapis:masterfrom
DominicKramer:test/add-install-check
Nov 15, 2017
Merged

test: add installation verification#359
DominicKramer merged 11 commits intogoogleapis:masterfrom
DominicKramer:test/add-install-check

Conversation

@DominicKramer
Copy link
Copy Markdown
Contributor

No description provided.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Nov 10, 2017
@DominicKramer DominicKramer requested a review from a team November 10, 2017 01:57
@ofrobots ofrobots changed the title test: Add installation verification test: add installation verification Nov 10, 2017
@@ -0,0 +1,97 @@

This comment was marked as spam.

This comment was marked as spam.

});

TS_CODE.forEach((code) => {
it(`Should install and work with the Typescript code:\n${code}`, async function() {

This comment was marked as spam.

This comment was marked as spam.

});

JS_CODE.forEach((code) => {
it(`Should install and work with the Javascript code:\n${code}`, async function() {

This comment was marked as spam.

This comment was marked as spam.

@@ -0,0 +1,66 @@

This comment was marked as spam.

This comment was marked as spam.

tsconfig.json Outdated
"node_modules",
"test/fixtures"
]
} No newline at end of file

This comment was marked as spam.

This comment was marked as spam.

package.json Outdated
"posttest": "npm run check",
"prepack": "npm run compile",
"pretest-install": "npm run compile",
"test-install": "mocha build/test/test-install.js"

This comment was marked as spam.

This comment was marked as spam.

package.json Outdated
"posttest": "npm run check"
"posttest": "npm run check",
"prepack": "npm run compile",
"pretest-install": "npm run compile",

This comment was marked as spam.

This comment was marked as spam.

return path.relative(BUILD_DIRECTORY, `node_modules/${nodule}`);
}

export function existsP(path: string): Promise<boolean> {

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

test/utils.ts Outdated
});
}

export function spawnP(command: string, args?: string[], options?: SpawnOptions, log?: (text: string) => void): Promise<void> {

This comment was marked as spam.

debug.start({ allowExpressions: true });
`;

const TS_CODE = [TS_CODE_1, TS_CODE_2, TS_CODE_3];

This comment was marked as spam.

This comment was marked as spam.

allowExpressions: true
})`;

const JS_CODE = [JS_CODE_1, JS_CODE_2, JS_CODE_3];

This comment was marked as spam.

This comment was marked as spam.

@DominicKramer
Copy link
Copy Markdown
Contributor Author

@ofrobots @gaofanmichael PTAL

Copy link
Copy Markdown
Contributor

@kjin kjin left a comment

Choose a reason for hiding this comment

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

LGTM from my end.

});

TS_CODE_ARRAY.forEach((code) => {
it(`should install and work with the Typescript code:\n${code}`, async function() {

This comment was marked as spam.

This comment was marked as spam.

return path.relative(BUILD_DIRECTORY, `node_modules/${nodule}`);
}

export function existsP(path: string): Promise<boolean> {

This comment was marked as spam.

tsconfig.json Outdated
"exclude": [
"node_modules"
"node_modules",
"test/fixtures"

This comment was marked as spam.

This comment was marked as spam.

@DominicKramer DominicKramer merged commit acdefca into googleapis:master Nov 15, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants