Skip to content

Setting ServerGC for the test runner #1967

@ivonin

Description

@ivonin

Description

VSTest.console.exe is currently configured to run in workstation GC (also concurrent). There is currently no way to change this behavior other than patching the vstest.console.exe.config file in the VS installation folder. This solution is obviously not pleasant.

We have a big test assembly (11.5k tests) and it makes a big difference: the tests take 9 minutes to run with ServerGC=off and 4.5 minutes with ServerGC=on.

Expected behavior

  1. It's probably not a bad thing to make ServerGC=on by default (MSTest v1 was using server GC, see QTAgent32.exe.Config)
  2. If not, it would be nice to set the behavior via the .runsettings file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Help-WantedThe issue is up-for-grabs, and can be claimed by commenting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions