-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Min-max testing for Common package : Separate folder & Pipeline creation #24225
Min-max testing for Common package : Separate folder & Pipeline creation #24225
Conversation
…le for pipeline creation
/azp run js - communication-common - tests |
No pipelines are associated with this pull request. |
API change check API changes are not detected in this pull request. |
/azp run prepare-pipelines |
Azure Pipelines failed to run 1 pipeline(s). |
Was trying to set up live test pipeline for this [pr](Azure/azure-sdk-for-js#24225). The prepare-pipeline job failed due to [not being able to find install-pipeline-generation.yml](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=2056101&view=results).
/azp run prepare-pipelines |
Azure Pipelines successfully started running 1 pipeline(s). |
…jafferi-msft/azure-sdk-for-js into minmaxtesting_folderseparation
@@ -23,7 +23,7 @@ | |||
"extract-api": "tsc -p . && api-extractor run --local", | |||
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", | |||
"integration-test:browser": "karma start --single-run", | |||
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --full-trace -t 300000 dist-esm/test/*.spec.js dist-esm/test/node/*.spec.js", | |||
"integration-test:node": "nyc mocha -r esm --require source-map-support/register --reporter ../../../common/tools/mocha-multi-reporter.js --full-trace -t 300000 dist-esm/test/**/*.spec.js dist-esm/test/node/*.spec.js", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is because test files has now been moved to test/public or test/internal folders and is needed to show coverage summary.
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run js - communication-common - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run js - communication-common - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run js - communication-common - tests |
Pull request contains merge conflicts. |
/azp run js - communication-common - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work!
Packages impacted by this PR
communication-common
Issues associated with this PR
Describe the problem that is addressed by this PR
Created 2 folders under test folder :
- public which contains all the tests eligible for min-max testing
- internal that contains tests that access private/internal members
Fixed tests that were failing when object instance was checked possibly due to different package versions referenced.
Added tests.yml file to the Common package which is responsible for creating live test pipeline.
- Modified the matrix to skip all unnecessary jobs and just execute min-max testing
Live test pipelines created :
- Pipelines - Runs for js - communication-common - tests (azure.com)
- Pipelines - Runs for js - communication-common - tests-weekly (azure.com)
What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?
Are there test cases added in this PR? (If not, why?)
No new test cases are added. Just restructuring of test folder and fixing failed tests so as to enable min-max testing.
Provide a list of related PRs (if any)
Command used to generate this PR:**(Applicable only to SDK release request PRs)
Checklists