Compare commits

...

5 commits

Author SHA1 Message Date
Malte Rosenbjerg
cd258991bd Add prefix to tests modifying GlobalOptions 2025-10-16 14:42:04 +02:00
Malte Rosenbjerg
5082e6503e Set OrderTestsByNameInClass to true 2025-10-16 14:41:47 +02:00
Malte Rosenbjerg
48ccd3e291 Update test config.json file 2025-10-16 14:41:36 +02:00
Malte Rosenbjerg
b8de2fc545 Parallelize on MethodLevel 2025-10-16 14:41:26 +02:00
Malte Rosenbjerg
91bbfa850e Avoid modifying global options if not necessary 2025-10-16 14:36:25 +02:00
6 changed files with 9 additions and 11 deletions

View file

@ -1 +1 @@
[assembly: Parallelize(Scope = ExecutionScope.ClassLevel)]
[assembly: Parallelize(Scope = ExecutionScope.MethodLevel)]

View file

@ -11,7 +11,7 @@ public class FFMpegArgumentProcessorTest
}
[TestMethod]
public void Processor_GlobalOptions_GetUsed()
public void ZZZ_Processor_GlobalOptions_GetUsed()
{
var globalWorkingDir = "Whatever";
var processor = CreateArgumentProcessor();
@ -43,7 +43,7 @@ public class FFMpegArgumentProcessorTest
}
[TestMethod]
public void Processor_Options_CanBeOverridden_And_Configured()
public void ZZZ_Processor_Options_CanBeOverridden_And_Configured()
{
var globalConfig = "Whatever";
@ -73,7 +73,7 @@ public class FFMpegArgumentProcessorTest
}
[TestMethod]
public void Options_Global_And_Session_Options_Can_Differ()
public void ZZZ_Options_Global_And_Session_Options_Can_Differ()
{
var globalWorkingDir = "Whatever";

View file

@ -5,6 +5,7 @@
<IsPackable>false</IsPackable>
<Nullable>disable</Nullable>
<LangVersion>default</LangVersion>
<OrderTestsByNameInClass>true</OrderTestsByNameInClass>
</PropertyGroup>
<ItemGroup>

View file

@ -27,15 +27,12 @@ public class FFMpegOptionsTest
}
[TestMethod]
public void Options_Set_Programmatically()
public void ZZZ_Options_Set_Programmatically()
{
try
{
GlobalFFOptions.Configure(new FFOptions { BinaryFolder = "Whatever" });
Assert.AreEqual(
"Whatever",
GlobalFFOptions.Current.BinaryFolder
);
Assert.AreEqual("Whatever", GlobalFFOptions.Current.BinaryFolder);
}
finally
{

View file

@ -824,7 +824,6 @@ public class VideoTest
using var outputFile = new TemporaryFile("out.mp4");
var dataReceived = false;
GlobalFFOptions.Configure(opt => opt.Encoding = Encoding.UTF8);
var success = FFMpegArguments
.FromFileInput(TestResources.Mp4Video)
.WithGlobalOptions(options => options
@ -832,6 +831,7 @@ public class VideoTest
.OutputToFile(outputFile, false, opt => opt
.WithDuration(TimeSpan.FromSeconds(2)))
.NotifyOnError(_ => dataReceived = true)
.Configure(opt => opt.Encoding = Encoding.UTF8)
.ProcessSynchronously();
Assert.IsTrue(dataReceived);

View file

@ -1,3 +1,3 @@
{
"RootDirectory": ""
"BinaryFolder": ""
}