@@ -20,39 +20,39 @@ private SingleFileTestRunner(IMessageSink messageSink)
2020
2121 public static async Task < int > Main ( string [ ] args )
2222 {
23- var rootCommand = new RootCommand ( "Scenario test runner" ) ;
23+ var rootCommand = new CliRootCommand ( "Scenario test runner" ) ;
2424
25- Option < bool > listTestsOption = new ( "--list" )
25+ CliOption < bool > listTestsOption = new ( "--list" )
2626 {
2727 Description = "List tests that would be run, without running them."
2828 } ;
29- Option < List < string > > noTraitsOption = new ( "--no-traits" )
29+ CliOption < List < string > > noTraitsOption = new ( "--no-traits" )
3030 {
3131 Description = "Do not run tests with the following traits. Format X=Y"
3232 } ;
33- Option < List < string > > traitsOption = new ( "--traits" )
33+ CliOption < List < string > > traitsOption = new ( "--traits" )
3434 {
3535 Description = "Only run tests with the following traits. Format X=Y"
3636 } ;
37- Option < bool > offlineOnlyOption = new ( "--offline-only" )
37+ CliOption < bool > offlineOnlyOption = new ( "--offline-only" )
3838 {
3939 Description = "Only run tests that can be run in offline mode. Implies --notraits 'resources=online'"
4040 } ;
41- Option < string > xmlResultsPathOption = new ( "--xml" )
41+ CliOption < string > xmlResultsPathOption = new ( "--xml" )
4242 {
4343 Description = "XML result file."
4444 } ;
45- Option < string > testRootOption = new ( "--test-root" )
45+ CliOption < string > testRootOption = new ( "--test-root" )
4646 {
4747 DefaultValueFactory = ( _ ) => Directory . CreateTempSubdirectory ( ) . FullName ,
4848 Description = "Directory used for temporary files when running tests"
4949 } ;
50- Option < bool > noCleanTestRoot = new ( "--no-cleanup" )
50+ CliOption < bool > noCleanTestRoot = new ( "--no-cleanup" )
5151 {
5252 Description = "Do not cleanup the test root after execution."
5353 } ;
5454
55- Option < string > dotnetRootOption = new ( "--dotnet-root" )
55+ CliOption < string > dotnetRootOption = new ( "--dotnet-root" )
5656 {
5757 Description = "dotnet root to run tests against." ,
5858 Required = true
@@ -66,23 +66,23 @@ public static async Task<int> Main(string[] args)
6666 }
6767 } ) ;
6868
69- Option < string > sdkVersionOption = new ( "--sdk-version" )
69+ CliOption < string > sdkVersionOption = new ( "--sdk-version" )
7070 {
7171 Description = "Version of SDK to use to run tests against. Optional. Otherwise uses the default SDK at the dotnet root."
7272 } ;
7373
74- Option < string > targetRidOption = new ( "--target-rid" )
74+ CliOption < string > targetRidOption = new ( "--target-rid" )
7575 {
7676 Description = "Target rid for tests requiring one (e.g. self-contained publish). If omitted, uses the target rid of the executing application" ,
7777 DefaultValueFactory = ( _ ) => RuntimeInformation . RuntimeIdentifier
7878 } ;
7979
80- Option < string > portableRidOption = new ( "--portable-rid" )
80+ CliOption < string > portableRidOption = new ( "--portable-rid" )
8181 {
8282 Description = "Portable rid for tests requiring one (e.g. self-contained publish)."
8383 } ;
8484
85- Option < string > binlogDirOption = new ( "--binlog-dir" )
85+ CliOption < string > binlogDirOption = new ( "--binlog-dir" )
8686 {
8787 Description = "Directory to store binlogs in. If omitted, binlogs are stored in the generated projecgt directory."
8888 } ;
0 commit comments