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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public async Task <IResult> TransmitSpecFlowProjectRunningEvent(SpecFlowProjectRunningEvent projectRunningEvent)
 {
     return(await TransmitEvent(projectRunningEvent));
 }
예제 #4
0
 public void TransmitSpecflowProjectRunningEvent(SpecFlowProjectRunningEvent projectRunningEvent)
 {
     TransmitEvent(projectRunningEvent);
 }