Skip to content

Support VSTest parallel test execution setting - #2385

Merged
matthid merged 4 commits into
fsprojects:release/nextfrom
dungpa:vstest2
Aug 26, 2019
Merged

matthid merged 4 commits into
fsprojects:release/nextfrom
dungpa:vstest2

Conversation

@dungpa

@dungpa dungpa commented Aug 26, 2019 •

Copy link
Copy Markdown
Contributor

This PR enables the use of /Parallel setting in vstest.console.exe.

I haven't added /Parallel to the legacy counterpart at https://github.com/fsharp/FAKE/blob/1f8de0538209376f73e964f71957ddb6dabaa45c/src/legacy/FakeLib/UnitTest/VSTest.fs#L34. Please let me know if the setting is also required there.

See these references for more details about the setting:

TODO

Feel free to open the PR and ask for help

@matthid

matthid commented Aug 26, 2019

Copy link
Copy Markdown
Member

Thanks for looking into this! I noticed this module doesn't use properly escaped APIs and has no tests. Maybe you could clean it up?

@dungpa

dungpa commented Aug 26, 2019

Copy link
Copy Markdown
Contributor Author

Could you give some pointers where we use properly escaped APIs and test samples that I can follow? (Sorry, I haven't looked at the code base for a long time).

@matthid

matthid commented Aug 26, 2019

Copy link
Copy Markdown
Member

Sure, we have https://fake.build/core-process.html and in particular the Arguments API

In the end it should look similar to the StringBuilder which is currently used, but we can have a internal "helper" function returning the Arguments object which we can write tests against. Just look at the existing tests.

@dungpa

dungpa commented Aug 26, 2019

Copy link
Copy Markdown
Contributor Author

@matthid I added tests as requested.

@matthid matthid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ah I didn't realize this only writes an argument file. Anyway, thanks for adding the test!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants