Upgradovat z. testsettings na. runsettings
Konfigurační soubor testu můžete upgradovat z . testsettings na . runsettings pomocí nástroje SettingsMigrator, který se instaluje společně s Visual Studio. v závislosti na umístění instalace Visual Studio můžete najít nástroj migrace nastavení v následující cestě:
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\Extensions\TestPlatform\SettingsMigrator.exe
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\TestPlatform\SettingsMigrator.exe
Ve správném umístění adresáře můžete spustit nástroj ve formátu níže:
SettingsMigrator.exe <Full path to testsettings file to be migrated>
SettingsMigrator.exe <Full path to testsettings file to be migrated> <Full path to runsettings file to be created>
Příklady
SettingsMigrator.exe E:\MyTest\MyTestSettings.testsettings
SettingsMigrator.exe E:\MyTest\MyTestSettings.testsettings E:\MyTest\MyNewRunSettings.runsettings
Pokud se chcete dozvědět víc o tom, jak se možnosti . testsettings převádějí na . runsettings , najdete další podrobnosti o implementaci v úložišti open source test Platform na GitHub.