Skip to content
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

Add support for testconfig.json entries in MSTest #3872

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from

Conversation

engyebrahim
Copy link
Member

@engyebrahim engyebrahim commented Sep 26, 2024

fix: #3572


// Expected format of the json is: -
//
// "mstest" : {
//  "timeout" : {
//      "assemblyInitialize" : strictly positive int,
//      "assemblyCleanup" : strictly positive int,
//      "classInitialize" : strictly positive int,
//      "classCleanup" : strictly positive int,
//      "testInitialize" : strictly positive int,
//      "testCleanup" : strictly positive int,
//      "test" : strictly positive int
//  },
//  "parallelism" : {
//      "enabled": true/false,
//      "workers": positive int,
//      "scope": method/class,
//  },
//  "runConfiguration": {
//     "collectSourceInformation": true,
//     "executionApartmentState": "STA"
//  },
//  "deployment" : {
//       "enabled": true / false,
//       "deployTestSourceDependencies": true / false,
//       "deleteDeploymentDirectoryAfterTestRunIsComplete": true / false
//  },
//  "assemblyResolution" : [
//        { "path" : "..." , includeSub: "true" } ,
//        { "path" : "..." , includeSub: "true" } ,
//        { "path" : "..." , includeSub: "true" } ,
//        ...
//     ],
//  ... remaining settings
// }

@engyebrahim
Copy link
Member Author

engyebrahim commented Oct 2, 2024

we have that by default generated
image

so as runsettings file could have some other settings more than mstest should i change the check to search on the key 'key' and throw on the case of it has it and we has it in configration but other than tat we okay two have two files!

check also visual studio default setting

@engyebrahim
Copy link
Member Author

engyebrahim commented Oct 2, 2024

i didn't use MSTESTv2 key

and for deployment settings it's in onother file/flow and i'm on it to get it from config

@engyebrahim
Copy link
Member Author

engyebrahim commented Oct 2, 2024

Directory pathes check if they need more work because of escaping

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for testconfig.json entries in MSTest
3 participants