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

Commit 56fe969

Browse files
JustinBeckwithDominicKramer
authored andcommitted
test: make install tests explicit (#789)
1 parent ef036c3 commit 56fe969

15 files changed

+283
-104
lines changed

package.json

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"presamples-test": "npm run compile",
3030
"samples-test": "cd samples/ && npm link ../ && npm install && npm test && cd ../",
3131
"presystem-test": "npm run compile",
32-
"system-test": "mocha build/system-test",
32+
"system-test": "mocha build/system-test --timeout 600000",
3333
"test-no-cover": "cross-env CLOUD_DEBUG_ASSERTIONS=1 mocha build/test --require source-map-support/register --timeout 4000 --R spec",
3434
"test": "nyc npm run test-no-cover && nyc report",
3535
"check": "gts check",
@@ -71,27 +71,31 @@
7171
"@types/lodash.pickby": "^4.6.4",
7272
"@types/mkdirp": "^0.5.1",
7373
"@types/mocha": "^5.0.0",
74-
"@types/ncp": "^2.0.1",
74+
"@types/mv": "^2.1.0",
75+
"@types/ncp": "^2.0.3",
7576
"@types/node": "~10.17.0",
7677
"@types/proxyquire": "^1.3.28",
7778
"@types/semver": "^6.0.0",
79+
"@types/tmp": "^0.1.0",
7880
"@types/uuid": "^3.4.4",
7981
"codecov": "^3.0.4",
8082
"cross-env": "^6.0.0",
83+
"execa": "^3.3.0",
8184
"gts": "^1.0.0",
8285
"intelli-espower-loader": "^1.0.1",
8386
"js-green-licenses": "^1.0.0",
8487
"linkinator": "^1.5.0",
8588
"mkdirp": "^0.5.1",
8689
"mocha": "^6.1.4",
90+
"mv": "^2.1.1",
8791
"ncp": "^2.0.0",
8892
"nock": "^11.0.0",
8993
"nyc": "^14.0.0",
90-
"post-install-check": "0.0.1",
9194
"proxyquire": "^2.0.0",
9295
"require-inject": "^1.4.3",
9396
"source-map-support": "^0.5.6",
9497
"teeny-request": "^5.0.0",
98+
"tmp-promise": "^2.0.2",
9599
"typescript": "~3.7.0",
96100
"uuid": "^3.3.2"
97101
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "sample",
3+
"private": true,
4+
"description": "",
5+
"scripts": {
6+
"compile": "tsc -p .",
7+
"fix": "gts fix",
8+
"prepare": "npm run compile"
9+
},
10+
"keywords": [],
11+
"author": "",
12+
"license": "Apache-2.0",
13+
"dependencies": {
14+
"@google-cloud/debug-agent": "./debug.tgz"
15+
},
16+
"devDependencies": {
17+
"gts": "^1.1.0",
18+
"typescript": "~3.7.0",
19+
"@types/node": "^10.0.3"
20+
}
21+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2019 Google LLC
2+
// Licensed under the Apache License, Version 2.0 (the "License");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
//
6+
// https://www.apache.org/licenses/LICENSE-2.0
7+
//
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
14+
import * as debug from '@google-cloud/debug-agent';
15+
debug.start({allowExpressions: true});
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
// Copyright 2019 Google LLC
2+
// Licensed under the Apache License, Version 2.0 (the "License");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
//
6+
// https://www.apache.org/licenses/LICENSE-2.0
7+
//
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
14+
require('@google-cloud/debug-agent').start({
15+
allowExpressions: true
16+
});
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// Copyright 2019 Google LLC
2+
// Licensed under the Apache License, Version 2.0 (the "License");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
//
6+
// https://www.apache.org/licenses/LICENSE-2.0
7+
//
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
14+
import * as debug from '@google-cloud/debug-agent';
15+
debug.start({
16+
allowExpressions: true,
17+
serviceContext: {
18+
service: 'Some service',
19+
version: 'Some version',
20+
},
21+
});
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2019 Google LLC
2+
// Licensed under the Apache License, Version 2.0 (the "License");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
//
6+
// https://www.apache.org/licenses/LICENSE-2.0
7+
//
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
14+
import * as debug from '@google-cloud/debug-agent';
15+
debug.start();
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Copyright 2019 Google LLC
2+
// Licensed under the Apache License, Version 2.0 (the "License");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
//
6+
// https://www.apache.org/licenses/LICENSE-2.0
7+
//
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
14+
import * as debug from '@google-cloud/debug-agent';
15+
debug.start();
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
// Copyright 2019 Google LLC
2+
// Licensed under the Apache License, Version 2.0 (the "License");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
//
6+
// https://www.apache.org/licenses/LICENSE-2.0
7+
//
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
14+
import * as debug from '@google-cloud/debug-agent';
15+
debug.start({
16+
capture: {
17+
maxFrames: 1,
18+
},
19+
});
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// Copyright 2019 Google LLC
2+
// Licensed under the Apache License, Version 2.0 (the "License");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
//
6+
// https://www.apache.org/licenses/LICENSE-2.0
7+
//
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
14+
import * as debug from '@google-cloud/debug-agent';
15+
debug.start({
16+
allowExpressions: true,
17+
serviceContext: {
18+
service: 'Some service',
19+
},
20+
});
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
// Copyright 2019 Google LLC
2+
// Licensed under the Apache License, Version 2.0 (the "License");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
//
6+
// https://www.apache.org/licenses/LICENSE-2.0
7+
//
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
14+
require('@google-cloud/debug-agent').start();

0 commit comments

Comments
 (0)