@@ -39,7 +39,7 @@ private void VerifyErrors(string[] args, params string[] expectedErrors)
39
39
Assert . NotEqual ( 0 , errorCode ) ;
40
40
}
41
41
42
- [ Theory ]
42
+ [ PlatformSpecificTheory ( TestPlatforms . Windows ) ] // https://github.com/dotnet/sdk/issues/49307
43
43
[ InlineData ( [ new [ ] { "-h" } ] ) ]
44
44
[ InlineData ( [ new [ ] { "-?" } ] ) ]
45
45
[ InlineData ( [ new [ ] { "--help" } ] ) ]
@@ -55,7 +55,7 @@ public void HelpArgs(string[] args)
55
55
Assert . Contains ( "Usage:" , output . ToString ( ) ) ;
56
56
}
57
57
58
- [ Theory ]
58
+ [ PlatformSpecificTheory ( TestPlatforms . Windows ) ] // https://github.com/dotnet/sdk/issues/49307
59
59
[ InlineData ( "-p:P=V" , "P" , "V" ) ]
60
60
[ InlineData ( "-p:P==" , "P" , "=" ) ]
61
61
[ InlineData ( "-p:P=A=B" , "P" , "A=B" ) ]
@@ -67,7 +67,7 @@ public void BuildProperties_Valid(string argValue, string name, string value)
67
67
AssertEx . SequenceEqual ( [ ( name , value ) ] , properties ) ;
68
68
}
69
69
70
- [ Theory ]
70
+ [ PlatformSpecificTheory ( TestPlatforms . Windows ) ] // https://github.com/dotnet/sdk/issues/49307
71
71
[ InlineData ( "P" ) ]
72
72
[ InlineData ( "=P3" ) ]
73
73
[ InlineData ( "=" ) ]
@@ -78,15 +78,15 @@ public void BuildProperties_Invalid(string argValue)
78
78
AssertEx . SequenceEqual ( [ ] , properties ) ;
79
79
}
80
80
81
- [ Fact ]
81
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
82
82
public void ImplicitCommand ( )
83
83
{
84
84
var options = VerifyOptions ( [ ] ) ;
85
85
Assert . Equal ( "run" , options . Command ) ;
86
86
AssertEx . SequenceEqual ( [ InteractiveOption ] , options . CommandArguments ) ;
87
87
}
88
88
89
- [ Theory ]
89
+ [ PlatformSpecificTheory ( TestPlatforms . Windows ) ] // https://github.com/dotnet/sdk/issues/49307
90
90
[ InlineData ( "add" ) ]
91
91
[ InlineData ( "build" ) ]
92
92
[ InlineData ( "build-server" ) ]
@@ -119,7 +119,7 @@ public void ExplicitCommand(string command)
119
119
Assert . Empty ( args ) ;
120
120
}
121
121
122
- [ Theory ]
122
+ [ PlatformSpecificTheory ( TestPlatforms . Windows ) ] // https://github.com/dotnet/sdk/issues/49307
123
123
[ CombinatorialData ]
124
124
public void WatchOptions_NotPassedThrough_BeforeCommand (
125
125
[ CombinatorialValues ( "--quiet" , "--verbose" , "--no-hot-reload" , "--non-interactive" ) ] string option ,
@@ -130,7 +130,7 @@ public void WatchOptions_NotPassedThrough_BeforeCommand(
130
130
AssertEx . SequenceEqual ( option == "--non-interactive" ? [ ] : [ InteractiveOption ] , options . CommandArguments ) ;
131
131
}
132
132
133
- [ Fact ]
133
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
134
134
public void RunOptions_LaunchProfile_Watch ( )
135
135
{
136
136
var options = VerifyOptions ( [ "-lp" , "P" , "run" ] ) ;
@@ -139,7 +139,7 @@ public void RunOptions_LaunchProfile_Watch()
139
139
AssertEx . SequenceEqual ( [ "-lp" , "P" , InteractiveOption ] , options . CommandArguments ) ;
140
140
}
141
141
142
- [ Fact ]
142
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
143
143
public void RunOptions_LaunchProfile_Run ( )
144
144
{
145
145
var options = VerifyOptions ( [ "run" , "-lp" , "P" ] ) ;
@@ -148,14 +148,14 @@ public void RunOptions_LaunchProfile_Run()
148
148
AssertEx . SequenceEqual ( [ "-lp" , "P" , InteractiveOption ] , options . CommandArguments ) ;
149
149
}
150
150
151
- [ Fact ]
151
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
152
152
public void RunOptions_LaunchProfile_Both ( )
153
153
{
154
154
VerifyErrors ( [ "-lp" , "P1" , "run" , "-lp" , "P2" ] ,
155
155
"error ❌ Option '-lp' expects a single argument but 2 were provided." ) ;
156
156
}
157
157
158
- [ Fact ]
158
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
159
159
public void RunOptions_NoProfile_Watch ( )
160
160
{
161
161
var options = VerifyOptions ( [ "--no-launch-profile" , "run" ] ) ;
@@ -165,7 +165,7 @@ public void RunOptions_NoProfile_Watch()
165
165
AssertEx . SequenceEqual ( [ "--no-launch-profile" , InteractiveOption ] , options . CommandArguments ) ;
166
166
}
167
167
168
- [ Fact ]
168
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
169
169
public void RunOptions_NoProfile_Run ( )
170
170
{
171
171
var options = VerifyOptions ( [ "run" , "--no-launch-profile" ] ) ;
@@ -175,7 +175,7 @@ public void RunOptions_NoProfile_Run()
175
175
AssertEx . SequenceEqual ( [ "--no-launch-profile" , InteractiveOption ] , options . CommandArguments ) ;
176
176
}
177
177
178
- [ Fact ]
178
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
179
179
public void RunOptions_NoProfile_Both ( )
180
180
{
181
181
var options = VerifyOptions ( [ "--no-launch-profile" , "run" , "--no-launch-profile" ] ) ;
@@ -185,7 +185,7 @@ public void RunOptions_NoProfile_Both()
185
185
AssertEx . SequenceEqual ( [ "--no-launch-profile" , InteractiveOption ] , options . CommandArguments ) ;
186
186
}
187
187
188
- [ Fact ]
188
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
189
189
public void RemainingOptions ( )
190
190
{
191
191
var options = VerifyOptions ( [ "-watchArg" , "--verbose" , "run" , "-runArg" ] ) ;
@@ -195,7 +195,7 @@ public void RemainingOptions()
195
195
AssertEx . SequenceEqual ( [ InteractiveOption , "-watchArg" , "-runArg" ] , options . CommandArguments ) ;
196
196
}
197
197
198
- [ Fact ]
198
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
199
199
public void UnknownOption ( )
200
200
{
201
201
var options = VerifyOptions ( [ "--verbose" , "--unknown" , "x" , "y" , "run" , "--project" , "p" ] ) ;
@@ -205,7 +205,7 @@ public void UnknownOption()
205
205
AssertEx . SequenceEqual ( [ "--project" , "p" , InteractiveOption , "--unknown" , "x" , "y" ] , options . CommandArguments ) ;
206
206
}
207
207
208
- [ Fact ]
208
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
209
209
public void RemainingOptionsDashDash ( )
210
210
{
211
211
var options = VerifyOptions ( [ "-watchArg" , "--" , "--verbose" , "run" , "-runArg" ] ) ;
@@ -215,7 +215,7 @@ public void RemainingOptionsDashDash()
215
215
AssertEx . SequenceEqual ( [ InteractiveOption , "-watchArg" , "--" , "--verbose" , "run" , "-runArg" , ] , options . CommandArguments ) ;
216
216
}
217
217
218
- [ Fact ]
218
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
219
219
public void RemainingOptionsDashDashRun ( )
220
220
{
221
221
var options = VerifyOptions ( [ "--" , "run" ] ) ;
@@ -225,7 +225,7 @@ public void RemainingOptionsDashDashRun()
225
225
AssertEx . SequenceEqual ( [ InteractiveOption , "--" , "run" ] , options . CommandArguments ) ;
226
226
}
227
227
228
- [ Fact ]
228
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
229
229
public void NoOptionsAfterDashDash ( )
230
230
{
231
231
var options = VerifyOptions ( [ "--" ] ) ;
@@ -240,7 +240,7 @@ public void NoOptionsAfterDashDash()
240
240
/// Therfore, it has to also be ignored by `dotnet run`,
241
241
/// otherwise the TFMs would be inconsistent between `dotnet watch` and `dotnet run`.
242
242
/// </summary>
243
- [ Fact ]
243
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
244
244
public void ParsedNonWatchOptionsAfterDashDash_Framework ( )
245
245
{
246
246
var options = VerifyOptions ( [ "--" , "-f" , "TFM" ] ) ;
@@ -249,7 +249,7 @@ public void ParsedNonWatchOptionsAfterDashDash_Framework()
249
249
AssertEx . SequenceEqual ( [ InteractiveOption , "--" , "-f" , "TFM" ] , options . CommandArguments ) ;
250
250
}
251
251
252
- [ Fact ]
252
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
253
253
public void ParsedNonWatchOptionsAfterDashDash_Project ( )
254
254
{
255
255
var options = VerifyOptions ( [ "--" , "--project" , "proj" ] ) ;
@@ -258,7 +258,7 @@ public void ParsedNonWatchOptionsAfterDashDash_Project()
258
258
AssertEx . SequenceEqual ( [ InteractiveOption , "--" , "--project" , "proj" ] , options . CommandArguments ) ;
259
259
}
260
260
261
- [ Fact ]
261
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
262
262
public void ParsedNonWatchOptionsAfterDashDash_NoLaunchProfile ( )
263
263
{
264
264
var options = VerifyOptions ( [ "--" , "--no-launch-profile" ] ) ;
@@ -267,7 +267,7 @@ public void ParsedNonWatchOptionsAfterDashDash_NoLaunchProfile()
267
267
AssertEx . SequenceEqual ( [ InteractiveOption , "--" , "--no-launch-profile" ] , options . CommandArguments ) ;
268
268
}
269
269
270
- [ Fact ]
270
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
271
271
public void ParsedNonWatchOptionsAfterDashDash_LaunchProfile ( )
272
272
{
273
273
var options = VerifyOptions ( [ "--" , "--launch-profile" , "p" ] ) ;
@@ -276,7 +276,7 @@ public void ParsedNonWatchOptionsAfterDashDash_LaunchProfile()
276
276
AssertEx . SequenceEqual ( [ InteractiveOption , "--" , "--launch-profile" , "p" ] , options . CommandArguments ) ;
277
277
}
278
278
279
- [ Fact ]
279
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
280
280
public void ParsedNonWatchOptionsAfterDashDash_Property ( )
281
281
{
282
282
var options = VerifyOptions ( [ "--" , "--property" , "x=1" ] ) ;
@@ -285,7 +285,7 @@ public void ParsedNonWatchOptionsAfterDashDash_Property()
285
285
AssertEx . SequenceEqual ( [ InteractiveOption , "--" , "--property" , "x=1" ] , options . CommandArguments ) ;
286
286
}
287
287
288
- [ Theory ]
288
+ [ PlatformSpecificTheory ( TestPlatforms . Windows ) ] // https://github.com/dotnet/sdk/issues/49307
289
289
[ CombinatorialData ]
290
290
public void OptionsSpecifiedBeforeOrAfterRun ( bool afterRun )
291
291
{
@@ -307,7 +307,7 @@ public enum ArgPosition
307
307
Both
308
308
}
309
309
310
- [ Theory ]
310
+ [ PlatformSpecificTheory ( TestPlatforms . Windows ) ] // https://github.com/dotnet/sdk/issues/49307
311
311
[ CombinatorialData ]
312
312
public void OptionDuplicates_Allowed_Bool (
313
313
ArgPosition position ,
@@ -342,7 +342,7 @@ public void OptionDuplicates_Allowed_Bool(
342
342
} ) ;
343
343
}
344
344
345
- [ Fact ]
345
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
346
346
public void MultiplePropertyValues ( )
347
347
{
348
348
var options = VerifyOptions ( [ "--property" , "P1=V1" , "run" , "--property" , "P2=V2" ] ) ;
@@ -352,7 +352,7 @@ public void MultiplePropertyValues()
352
352
AssertEx . SequenceEqual ( [ "--property:P1=V1" , "--property:P2=V2" , InteractiveOption ] , options . CommandArguments ) ;
353
353
}
354
354
355
- [ Theory ]
355
+ [ PlatformSpecificTheory ( TestPlatforms . Windows ) ] // https://github.com/dotnet/sdk/issues/49307
356
356
[ InlineData ( "--project" ) ]
357
357
[ InlineData ( "--framework" ) ]
358
358
public void OptionDuplicates_NotAllowed ( string option )
@@ -361,7 +361,7 @@ public void OptionDuplicates_NotAllowed(string option)
361
361
$ "error ❌ Option '{ option } ' expects a single argument but 2 were provided.") ;
362
362
}
363
363
364
- [ Theory ]
364
+ [ PlatformSpecificTheory ( TestPlatforms . Windows ) ] // https://github.com/dotnet/sdk/issues/49307
365
365
[ InlineData ( new [ ] { "--unrecognized-arg" } , new [ ] { InteractiveOption , "--unrecognized-arg" } ) ]
366
366
[ InlineData ( new [ ] { "run" } , new string [ ] { InteractiveOption } ) ]
367
367
[ InlineData ( new [ ] { "run" , "--" , "runarg" } , new [ ] { InteractiveOption , "--" , "runarg" } ) ]
@@ -376,14 +376,14 @@ public void ParsesRemainingArgs(string[] args, string[] expected)
376
376
Assert . Equal ( expected , options . CommandArguments ) ;
377
377
}
378
378
379
- [ Fact ]
379
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
380
380
public void CannotHaveQuietAndVerbose ( )
381
381
{
382
382
VerifyErrors ( [ "--quiet" , "--verbose" ] ,
383
383
$ "error ❌ { Resources . Error_QuietAndVerboseSpecified } ") ;
384
384
}
385
385
386
- [ Fact ]
386
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
387
387
public void ShortFormForProjectArgumentPrintsWarning ( )
388
388
{
389
389
var options = VerifyOptions ( [ "-p" , "MyProject.csproj" ] ,
@@ -392,22 +392,22 @@ public void ShortFormForProjectArgumentPrintsWarning()
392
392
Assert . Equal ( "MyProject.csproj" , options . ProjectPath ) ;
393
393
}
394
394
395
- [ Fact ]
395
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
396
396
public void LongFormForProjectArgumentWorks ( )
397
397
{
398
398
var options = VerifyOptions ( [ "--project" , "MyProject.csproj" ] ) ;
399
399
Assert . Equal ( "MyProject.csproj" , options . ProjectPath ) ;
400
400
}
401
401
402
- [ Fact ]
402
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
403
403
public void LongFormForLaunchProfileArgumentWorks ( )
404
404
{
405
405
var options = VerifyOptions ( [ "--launch-profile" , "CustomLaunchProfile" ] ) ;
406
406
Assert . NotNull ( options ) ;
407
407
Assert . Equal ( "CustomLaunchProfile" , options . LaunchProfileName ) ;
408
408
}
409
409
410
- [ Fact ]
410
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
411
411
public void ShortFormForLaunchProfileArgumentWorks ( )
412
412
{
413
413
var options = VerifyOptions ( [ "-lp" , "CustomLaunchProfile" ] ) ;
@@ -419,7 +419,7 @@ public void ShortFormForLaunchProfileArgumentWorks()
419
419
/// <summary>
420
420
/// Validates that options that the "run" command forwards to "build" command are forwarded by dotnet-watch.
421
421
/// </summary>
422
- [ Theory ]
422
+ [ PlatformSpecificTheory ( TestPlatforms . Windows ) ] // https://github.com/dotnet/sdk/issues/49307
423
423
[ InlineData ( new [ ] { "--configuration" , "release" } , new [ ] { "-property:Configuration=release" , NugetInteractiveProperty } ) ]
424
424
[ InlineData ( new [ ] { "--framework" , "net9.0" } , new [ ] { "-property:TargetFramework=net9.0" , NugetInteractiveProperty } ) ]
425
425
[ InlineData ( new [ ] { "--runtime" , "arm64" } , new [ ] { "-property:RuntimeIdentifier=arm64" , "-property:_CommandLineDefinedRuntimeIdentifier=true" , NugetInteractiveProperty } ) ]
@@ -438,7 +438,7 @@ public void ForwardedBuildOptions(string[] args, string[] buildArgs)
438
438
AssertEx . SequenceEqual ( buildArgs , options . BuildArguments ) ;
439
439
}
440
440
441
- [ Fact ]
441
+ [ PlatformSpecificFact ( TestPlatforms . Windows ) ] // "https://github.com/dotnet/sdk/issues/49307")
442
442
public void ForwardedBuildOptions_ArtifactsPath ( )
443
443
{
444
444
var path = TestContext . Current . TestAssetsDirectory ;
0 commit comments