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

FilterOptions is not serialized correctly when running .NET Core tests #1551

Merged
merged 5 commits into from
Apr 20, 2018

Conversation

abhishkk
Copy link
Contributor

Issue:
#1539

Fix:
ParallelProxyExecutionManager send execution request to each execution manager passing a copy of testRunCriteria with different sources.

While copying from TestRunCriteria, FilterOptions was not passed to each execution manager's testRunCriteria.

Fix contains changes to pass FilterOptions to each execution manager in case of Parallal run.

{
TestCaseFilter = this.actualTestRunCriteria.TestCaseFilter
};
testRunCriteria = new TestRunCriteria(new[] { nextSource }, this.actualTestRunCriteria);
Copy link
Contributor

Choose a reason for hiding this comment

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

actualTestRunCriteria [](start = 85, length = 21)

how was parallel ever working?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

When FilterOptions are used, it never works. otherwise with test case filter it does.

@singhsarab singhsarab changed the title FIlterOptions` is not serialized correctly when running .NET Core tests FilterOptions is not serialized correctly when running .NET Core tests Apr 20, 2018
Copy link
Contributor

@singhsarab singhsarab left a comment

Choose a reason for hiding this comment

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

:shipit:

@singhsarab singhsarab merged commit b39ba30 into microsoft:master Apr 20, 2018
singhsarab pushed a commit to singhsarab/vstest that referenced this pull request Apr 20, 2018
microsoft#1551)

* Initial commit

* Passing Filter Options to each execution manager of parallal execution.

* Unit tests
singhsarab added a commit that referenced this pull request Apr 20, 2018
#1551) (#1557)

* Initial commit

* Passing Filter Options to each execution manager of parallal execution.

* Unit tests
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.

5 participants