-
Notifications
You must be signed in to change notification settings - Fork 0
Implement test parallel execution within a single job #129
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
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
2be238c
Seperate populate tests into seperate jobs. Removed some unnecessary …
Nadegamra 7b06257
Fixed a bug in run-suite-if-main-module.
Nadegamra 13cd656
Replaced multiple jobs with parallel test execution within the same job.
Nadegamra 339e065
Added some debugging code to powershell scripts.
Nadegamra 620e472
Replaced powershell action with shell action.
Nadegamra 14bc525
Updated powershell scripts.
Nadegamra 9327c80
Set working directories for scripts in ci.yaml
Nadegamra 12c9159
debug changes
Nadegamra bb5c503
debug changes
Nadegamra a6d3b3a
Replaced node_modules/.bin calls in scripts with npx calls.
Nadegamra ba9d900
Added amount of jobs to parallel mocha calls.
Nadegamra f988599
Updated run-suite-if-main-module.ts
Nadegamra 064580e
Merge https://github.com/itwin/itwin-cli into nadegamra/populate-sepe…
Nadegamra 46c77e2
Addressed PR comments.
Nadegamra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
integration-tests/main-cases/native-client-parallel/native-client-populate.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| /*--------------------------------------------------------------------------------------------- | ||
| * Copyright (c) Bentley Systems, Incorporated. All rights reserved. | ||
| * See LICENSE.md in the project root for license terms and full copyright notice. | ||
| *--------------------------------------------------------------------------------------------*/ | ||
|
|
||
| import iModelPopulateTests from '../../imodel/populate.test'; | ||
| import { nativeLoginToCli } from '../../utils/helpers'; | ||
|
|
||
| describe('Native Client Tests (imodel populate)', async () => { | ||
| before(async () => { | ||
| await nativeLoginToCli(); | ||
| }) | ||
|
|
||
| iModelPopulateTests(); | ||
| }); |
18 changes: 18 additions & 0 deletions
18
integration-tests/main-cases/native-client-parallel/native-client.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| /*--------------------------------------------------------------------------------------------- | ||
| * Copyright (c) Bentley Systems, Incorporated. All rights reserved. | ||
| * See LICENSE.md in the project root for license terms and full copyright notice. | ||
| *--------------------------------------------------------------------------------------------*/ | ||
|
|
||
| import accessControlNativeTests from '../../access-control-native/access-control-native.test' | ||
| import { nativeLoginToCli } from '../../utils/helpers'; | ||
| import sharedQuickUseCasesParallel from '../shared-quick-use-cases-parallel'; | ||
|
|
||
| describe('Native Client Tests', async () => { | ||
| before(async () => { | ||
| await nativeLoginToCli(); | ||
| }) | ||
|
|
||
| accessControlNativeTests(); | ||
| sharedQuickUseCasesParallel(); | ||
|
|
||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| /*--------------------------------------------------------------------------------------------- | ||
| * Copyright (c) Bentley Systems, Incorporated. All rights reserved. | ||
| * See LICENSE.md in the project root for license terms and full copyright notice. | ||
| *--------------------------------------------------------------------------------------------*/ | ||
|
|
||
| import authTests from '../auth/auth.test' | ||
| import { nativeLoginToCli } from '../utils/helpers'; | ||
|
|
||
| describe('Native Client Tests (serial)', async () => { | ||
| before(async () => { | ||
| await nativeLoginToCli(); | ||
| }) | ||
|
|
||
| describe('Authentication Integration Tests', async () => { | ||
| after(async () => { | ||
| await nativeLoginToCli(); | ||
| }) | ||
|
|
||
| authTests(); | ||
| }) | ||
| }); |
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
integration-tests/main-cases/service-client-parallel/service-client-populate.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| /*--------------------------------------------------------------------------------------------- | ||
| * Copyright (c) Bentley Systems, Incorporated. All rights reserved. | ||
| * See LICENSE.md in the project root for license terms and full copyright notice. | ||
| *--------------------------------------------------------------------------------------------*/ | ||
|
|
||
| import iModelPopulateTests from '../../imodel/populate.test' | ||
| import { logoutFromCLI } from '../../utils/helpers'; | ||
|
|
||
| describe('Service Client Tests (imodel populate)', () => { | ||
| before(async () => { | ||
| await logoutFromCLI(); | ||
| }) | ||
|
|
||
| iModelPopulateTests(); | ||
| }); | ||
15 changes: 15 additions & 0 deletions
15
integration-tests/main-cases/service-client-parallel/service-client.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| /*--------------------------------------------------------------------------------------------- | ||
| * Copyright (c) Bentley Systems, Incorporated. All rights reserved. | ||
| * See LICENSE.md in the project root for license terms and full copyright notice. | ||
| *--------------------------------------------------------------------------------------------*/ | ||
|
|
||
| import { logoutFromCLI } from '../../utils/helpers' | ||
| import sharedQuickUseCasesParallel from '../shared-quick-use-cases-parallel'; | ||
|
|
||
| describe('Service Client Tests', () => { | ||
| before(async () => { | ||
| await logoutFromCLI(); | ||
| }) | ||
|
|
||
| sharedQuickUseCasesParallel(); | ||
| }); |
18 changes: 18 additions & 0 deletions
18
integration-tests/main-cases/service-client-serial.test.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| /*--------------------------------------------------------------------------------------------- | ||
| * Copyright (c) Bentley Systems, Incorporated. All rights reserved. | ||
| * See LICENSE.md in the project root for license terms and full copyright notice. | ||
| *--------------------------------------------------------------------------------------------*/ | ||
|
|
||
| import authTests from '../auth/auth.test' | ||
| import authTestsService from '../auth-service/auth-service.test' | ||
| import { logoutFromCLI } from '../utils/helpers' | ||
|
|
||
| describe('Service Client Tests (serial)', () => { | ||
| before(async () => { | ||
| await logoutFromCLI(); | ||
| }) | ||
| describe('Authentication Integration Tests', () => { | ||
| authTestsService(); | ||
| authTests(); | ||
| }); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.