Add Emulator test category
This commit is contained in:
parent
1ff510d5bb
commit
c4b2e88921
4 changed files with 13 additions and 11 deletions
|
|
@ -284,6 +284,7 @@ namespace MatterHackers.PrinterEmulator
|
|||
while (!shutDown)
|
||||
{
|
||||
string line = "";
|
||||
|
||||
try
|
||||
{
|
||||
line = serialPort.ReadLine(); // read a '\n' terminated line
|
||||
|
|
@ -294,6 +295,7 @@ namespace MatterHackers.PrinterEmulator
|
|||
catch (Exception)
|
||||
{
|
||||
}
|
||||
|
||||
if (line.Length > 0)
|
||||
{
|
||||
Console.WriteLine(line);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
}, overrideHeight: 800);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Test, Category("Emulator")]
|
||||
public async Task SoftwareLevelingRequiredCorrectWorkflow()
|
||||
{
|
||||
await MatterControlUtilities.RunTest((testRunner) =>
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
[TestFixture, Category("MatterControl.UI.Automation"), RunInApplicationDomain, Apartment(ApartmentState.STA)]
|
||||
public class PrintingTests
|
||||
{
|
||||
[Test]
|
||||
[Test, Category("Emulator")]
|
||||
public async Task CompletingPrintTurnsoffHeat()
|
||||
{
|
||||
await MatterControlUtilities.RunTest((testRunner) =>
|
||||
|
|
@ -56,7 +56,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
}, maxTimeToRun: 200);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Test, Category("Emulator")]
|
||||
public async Task PulseRequiresLevelingAndLevelingWorks()
|
||||
{
|
||||
await MatterControlUtilities.RunTest((testRunner) =>
|
||||
|
|
@ -113,7 +113,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
}, maxTimeToRun: 90);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Test, Category("Emulator")]
|
||||
public void ExpectedEmulatorResponses()
|
||||
{
|
||||
string[] test1 = new string[]
|
||||
|
|
@ -208,7 +208,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Test, Category("Emulator")]
|
||||
public async Task PrinterRequestsResumeWorkingAsExpected()
|
||||
{
|
||||
await MatterControlUtilities.RunTest((testRunner) =>
|
||||
|
|
@ -255,7 +255,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
|
||||
private EventHandler unregisterEvents;
|
||||
|
||||
[Test]
|
||||
[Test, Category("Emulator")]
|
||||
public async Task TuningAdjustmentsDefaultToOneAndPersists()
|
||||
{
|
||||
double targetExtrusionRate = 1.5;
|
||||
|
|
@ -342,7 +342,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
}, overrideHeight:900, maxTimeToRun: 120);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Test, Category("Emulator")]
|
||||
public async Task TuningAdjustmentControlsBoundToStreamValues()
|
||||
{
|
||||
double targetExtrusionRate = 1.5;
|
||||
|
|
@ -435,7 +435,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
}, overrideHeight: 900, maxTimeToRun: 120);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Test, Category("Emulator")]
|
||||
public async Task CancelingSdCardPrintLeavesHeatAndFanOn()
|
||||
{
|
||||
await MatterControlUtilities.RunTest((testRunner) =>
|
||||
|
|
@ -479,7 +479,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
}, overrideHeight: 900, maxTimeToRun: 90);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Test, Category("Emulator")]
|
||||
public async Task CancelingNormalPrintTurnsHeatAndFanOff()
|
||||
{
|
||||
await MatterControlUtilities.RunTest((testRunner) =>
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
}, overrideWidth: 1224, overrideHeight: 800);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Test, Category("Emulator")]
|
||||
public async Task PauseOnLayerDoesPauseOnPrint()
|
||||
{
|
||||
await MatterControlUtilities.RunTest((testRunner) =>
|
||||
|
|
@ -82,7 +82,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
}, maxTimeToRun: 120);
|
||||
}
|
||||
|
||||
[Test]
|
||||
[Test, Category("Emulator")]
|
||||
public async Task CancelWorksAsExpected()
|
||||
{
|
||||
await MatterControlUtilities.RunTest((testRunner) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue