public SpecFlowProjectRunningEvent CreateProjectRunningEvent(string testAssemblyName) { string userId = _userUniqueIdStore.GetUserId(); string unitTestProvider = _unitTestProvider; string specFlowVersion = GetSpecFlowVersion(); string targetFramework = GetNetCoreVersion() ?? Environment.Version.ToString(); bool isDockerContainer = IsRunningInDockerContainer(); string buildServerName = GetBuildServerName(); string hashedAssemblyName = ToSha256(testAssemblyName); string platform = GetOSPlatform(); string platformDescription = RuntimeInformation.OSDescription; var runningEvent = new SpecFlowProjectRunningEvent( DateTime.UtcNow, userId, platform, platformDescription, specFlowVersion, unitTestProvider, buildServerName, hashedAssemblyName, null, targetFramework, isDockerContainer); return(runningEvent); }
public SpecFlowProjectRunningEvent CreateProjectRunningEvent(string testAssemblyName) { var userId = _userUniqueIdStore.GetUserId(); var unitTestProvider = _unitTestProvider; var specFlowVersion = GetSpecFlowVersion(); var isBuildServer = IsBuildServerMode(); var targetFramework = GetNetCoreVersion() ?? Environment.Version.ToString(); var hashedAssemblyName = ToSha256(testAssemblyName); var platform = GetOSPlatform(); var platformDescription = RuntimeInformation.OSDescription; var runningEvent = new SpecFlowProjectRunningEvent(DateTime.UtcNow, userId, platform, platformDescription, specFlowVersion, unitTestProvider, isBuildServer, hashedAssemblyName, null, targetFramework); return(runningEvent); }
public async Task <IResult> TransmitSpecFlowProjectRunningEvent(SpecFlowProjectRunningEvent projectRunningEvent) { return(await TransmitEvent(projectRunningEvent)); }
public void TransmitSpecflowProjectRunningEvent(SpecFlowProjectRunningEvent projectRunningEvent) { TransmitEvent(projectRunningEvent); }