azure-pipelines

job statuses

See the list of Job statuses to conditionally run tasks.

killing long-running processes

When ChromeDriver fails to gracefully terminate, it can hold the build agent from completing the build until it times out (~2 hours). Use this to murder the process on Assembly Cleanup.

[TestClass]
public class Teardown
{
    [AssemblyCleanup]
    static public void AssemblyCleanup()
    {
        foreach (var process in Process.GetProcessesByName("chromedriver"))
        {
            process.Kill();
        }
    }
}

extension development