Skip to content

feat: updating to new release management system #193

feat: updating to new release management system

feat: updating to new release management system #193

GitHub Actions / .NET Tests succeeded Jun 14, 2024 in 0s

146 passed, 0 failed and 0 skipped

Tests passed successfully

✅ ./src/test-results/test-results.trx

146 tests were completed in 29s with 146 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
Purview.Telemetry.SourceGenerator.Activities.TelemetrySourceGeneratorActivityTests 23✅ 15s
Purview.Telemetry.SourceGenerator.Logging.TelemetrySourceGeneratorLoggingTests 64✅ 27s
Purview.Telemetry.SourceGenerator.Metrics.TelemetrySourceGeneratorMetricsTests 39✅ 21s
Purview.Telemetry.SourceGenerator.TelemetrySourceGeneratorTests 20✅ 13s

✅ Purview.Telemetry.SourceGenerator.Activities.TelemetrySourceGeneratorActivityTests

✅ Generate_GivenAssemblyEnableDI_GeneratesActivity
✅ Generate_GivenBasicContextGen_GeneratesActivity
✅ Generate_GivenBasicContextGenWithActivity_GeneratesActivity
✅ Generate_GivenBasicContextGenWithActivityAndNoReturn_GeneratesActivity
✅ Generate_GivenBasicContextGenWithNullableParams_GeneratesActivity
✅ Generate_GivenBasicContextGenWithReturningActivity_GeneratesActivity
✅ Generate_GivenBasicContextGenWithReturningNullableActivity_GeneratesActivity
✅ Generate_GivenBasicEventWithActivityParameter_GeneratesActivity
✅ Generate_GivenBasicEventWithNullableActivityParameter_GeneratesActivity
✅ Generate_GivenBasicGen_GeneratesActivity
✅ Generate_GivenBasicGenAndNoActivityName_GeneratesActivity
✅ Generate_GivenBasicGenWithNullableParams_GeneratesActivity
✅ Generate_GivenBasicGenWithReturningActivity_GeneratesActivity
✅ Generate_GivenBasicGenWithReturningNullableActivity_GeneratesActivity
✅ Generate_GivenDIDisabledAtAssemblyAndInterfaceEnableDI_GeneratesActivity
✅ Generate_GivenDIEnabledAtAssemblyAndInterfaceDisableDI_GeneratesActivity
✅ Generate_GivenInterfaceEnableDI_GeneratesActivity
✅ Generate_GivenInterfaceWithNoActivityButOtherActivityBasedMethods_GeneratesDiagnostic
✅ Generate_GivenMethodWithBasicGenericParams_GeneratesEntryCorrectly(parameterType: "System.Collections.Generic.Dictionary<string,int>")
✅ Generate_GivenMethodWithBasicGenericParams_GeneratesEntryCorrectly(parameterType: "System.Collections.Generic.IDictionary<string,int>")
✅ Generate_GivenMethodWithBasicGenericParams_GeneratesEntryCorrectly(parameterType: "System.Collections.Generic.IEnumerable<string>")
✅ Generate_GivenMethodWithBasicGenericParams_GeneratesEntryCorrectly(parameterType: "System.Collections.Generic.List<string>")
✅ Generate_GivenWithNonStringBaggage_RaisesDiagnosticAndGenerates

✅ Purview.Telemetry.SourceGenerator.Logging.TelemetrySourceGeneratorLoggingTests

✅ Generate_GivenAssemblyEnableDI_GeneratesLog
✅ Generate_GivenDIDisabledAtAssemblyAndInterfaceEnableDI_GeneratesLog
✅ Generate_GivenDIEnabledAtAssemblyAndInterfaceDisabledDI_GeneratesLog
✅ Generate_GivenInterfaceEnableDI_GeneratesLog
✅ Generate_GivenInterfaceMoreThanOneExceptionParameter_RaisesDiagnostic
✅ Generate_GivenInterfaceMoreThanSixParameters_RaisesDiagnostic
✅ Generate_GivenInterfaceWithExplicitLogLevelAndAnExceptionParameter_GenerateLogger(level: "Level = Microsoft.Extensions.Logging.LogLevel.Trac"···)
✅ Generate_GivenInterfaceWithExplicitLogLevelAndAnExceptionParameter_GenerateLogger(level: "level: Microsoft.Extensions.Logging.LogLevel.Trace")
✅ Generate_GivenInterfaceWithExplicitLogLevelAndAnExceptionParameter_GenerateLogger(level: "Microsoft.Extensions.Logging.LogLevel.Trace")
✅ Generate_GivenInterfaceWithoutExplicitLogLevelAndAnExceptionParameter_GenerateLogger
✅ Generate_GivenInterfaceWithSingleBasicExplicitLogEntry_GenerateLogger
✅ Generate_GivenInterfaceWithSingleBasicImplicitLogEntry_GenerateLogger
✅ Generate_GivenInterfaceWithSpecificLogAttribute_GenerateLoggerWithThatLevel(attribute: "Critical")
✅ Generate_GivenInterfaceWithSpecificLogAttribute_GenerateLoggerWithThatLevel(attribute: "Debug")
✅ Generate_GivenInterfaceWithSpecificLogAttribute_GenerateLoggerWithThatLevel(attribute: "Error")
✅ Generate_GivenInterfaceWithSpecificLogAttribute_GenerateLoggerWithThatLevel(attribute: "Info")
✅ Generate_GivenInterfaceWithSpecificLogAttribute_GenerateLoggerWithThatLevel(attribute: "Trace")
✅ Generate_GivenInterfaceWithSpecificLogAttribute_GenerateLoggerWithThatLevel(attribute: "Warning")
✅ Generate_GivenInterfaceWithSpecificTypesAndSpecificParameters_GenerateLoggerWithThatLevelAndParameter(attribute: "Critical")
✅ Generate_GivenInterfaceWithSpecificTypesAndSpecificParameters_GenerateLoggerWithThatLevelAndParameter(attribute: "Debug")
✅ Generate_GivenInterfaceWithSpecificTypesAndSpecificParameters_GenerateLoggerWithThatLevelAndParameter(attribute: "Error")
✅ Generate_GivenInterfaceWithSpecificTypesAndSpecificParameters_GenerateLoggerWithThatLevelAndParameter(attribute: "Info")
✅ Generate_GivenInterfaceWithSpecificTypesAndSpecificParameters_GenerateLoggerWithThatLevelAndParameter(attribute: "Trace")
✅ Generate_GivenInterfaceWithSpecificTypesAndSpecificParameters_GenerateLoggerWithThatLevelAndParameter(attribute: "Warning")
✅ Generate_GivenLoggerWithNamespaces_GeneratesScopedLogTarget(namespace: "Testing.Test1.Test2.Test3")
✅ Generate_GivenLoggerWithNamespaces_GeneratesScopedLogTarget(namespace: "Testing.Test1.Test2")
✅ Generate_GivenLoggerWithNamespaces_GeneratesScopedLogTarget(namespace: "Testing.Test1")
✅ Generate_GivenLoggerWithNamespacesAndNestedClass_GeneratesScopedLogTarget(namespace: "Testing.Test1.Test2.Test3")
✅ Generate_GivenLoggerWithNamespacesAndNestedClass_GeneratesScopedLogTarget(namespace: "Testing.Test1.Test2")
✅ Generate_GivenLoggerWithNamespacesAndNestedClass_GeneratesScopedLogTarget(namespace: "Testing.Test1")
✅ Generate_GivenLoggerWithNamespacesAndNestedClasses_GeneratesScopedLogTarget(namespace: "Testing.Test1.Test2.Test3")
✅ Generate_GivenLoggerWithNamespacesAndNestedClasses_GeneratesScopedLogTarget(namespace: "Testing.Test1.Test2")
✅ Generate_GivenLoggerWithNamespacesAndNestedClasses_GeneratesScopedLogTarget(namespace: "Testing.Test1")
✅ Generate_GivenLogTargetWithEntryName_GenerateLogger(logTargetName: "123")
✅ Generate_GivenLogTargetWithEntryName_GenerateLogger(logTargetName: "custom-log-entry-name")
✅ Generate_GivenLogTargetWithEntryName_GenerateLogger(logTargetName: "CustomLogNameSetViaLogTargetAttribute")
✅ Generate_GivenLogTargetWithEntryName_GenerateLogger(logTargetName: "LogNameSetViaLogTargetAttribute")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "Class", logTargetName: "123")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "Class", logTargetName: "custom-log-entry-name")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "Class", logTargetName: "CustomLogNameSetViaLogTargetAttribute")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "Class", logTargetName: "LogNameSetViaLogTargetAttribute")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "Custom", logTargetName: "123")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "Custom", logTargetName: "custom-log-entry-name")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "Custom", logTargetName: "CustomLogNameSetViaLogTargetAttribute")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "Custom", logTargetName: "LogNameSetViaLogTargetAttribute")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "Default", logTargetName: "123")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "Default", logTargetName: "custom-log-entry-name")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "Default", logTargetName: "CustomLogNameSetViaLogTargetAttribute")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "Default", logTargetName: "LogNameSetViaLogTargetAttribute")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "Interface", logTargetName: "123")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "Interface", logTargetName: "custom-log-entry-name")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "Interface", logTargetName: "CustomLogNameSetViaLogTargetAttribute")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "Interface", logTargetName: "LogNameSetViaLogTargetAttribute")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "NoSuffix", logTargetName: "123")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "NoSuffix", logTargetName: "custom-log-entry-name")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "NoSuffix", logTargetName: "CustomLogNameSetViaLogTargetAttribute")
✅ Generate_GivenLogTargetWithPrefixAndEntryName_GenerateLogger(type: "NoSuffix", logTargetName: "LogNameSetViaLogTargetAttribute")
✅ Generate_GivenMethodReturnsIDisposable_GeneratesScopedLogEntry
✅ Generate_GivenMethodWithBasicGenericParams_GeneratesEntryCorrectly(parameterType: "System.Collections.Generic.Dictionary<string,int>")
✅ Generate_GivenMethodWithBasicGenericParams_GeneratesEntryCorrectly(parameterType: "System.Collections.Generic.IDictionary<string,int>")
✅ Generate_GivenMethodWithBasicGenericParams_GeneratesEntryCorrectly(parameterType: "System.Collections.Generic.IEnumerable<string>")
✅ Generate_GivenMethodWithBasicGenericParams_GeneratesEntryCorrectly(parameterType: "System.Collections.Generic.List<string>")
✅ Generate_GivenMethodWithParamsAndExceptionReturnsIDisposable_GeneratesScopedLogEntry
✅ Generate_GivenMethodWithParamsReturnsIDisposable_GeneratesScopedLogEntry

✅ Purview.Telemetry.SourceGenerator.Metrics.TelemetrySourceGeneratorMetricsTests

✅ Generate_GivenAssemblyEnableDI_GeneratesMetrics
✅ Generate_GivenAutoCounterWithInstrumentationValue_GeneratesDiagnostic
✅ Generate_GivenBasicAutoCounter_GeneratesMetrics
✅ Generate_GivenBasicAutoCounterWithInferredTagsOfInstrumentType_GeneratesMetrics
✅ Generate_GivenBasicAutoCounterWithSpecifiedInstrumentMeasurement_GeneratesDiagnostic
✅ Generate_GivenBasicCounters_GeneratesMetrics
✅ Generate_GivenBasicCountersWithAutoIncrement_GeneratesMetrics
✅ Generate_GivenBasicHistogram_GeneratesMetrics
✅ Generate_GivenBasicObservableCounters_GeneratesMetrics
✅ Generate_GivenBasicObservableGauge_GeneratesMetrics
✅ Generate_GivenBasicObservableUpDown_GeneratesMetrics
✅ Generate_GivenBasicUpDown_GeneratesMetrics
✅ Generate_GivenDIDisabledAtAssemblyAndInterfaceEnableDI_GeneratesMetrics
✅ Generate_GivenDIEnabledAtAssemblyAndInterfaceDisabledDI_GeneratesMetrics
✅ Generate_GivenInterfaceEnableDI_GeneratesMetrics
✅ Generate_GivenMethodWithBasicGenericParams_GeneratesEntryCorrectly(parameterType: "System.Collections.Generic.Dictionary<string,int>")
✅ Generate_GivenMethodWithBasicGenericParams_GeneratesEntryCorrectly(parameterType: "System.Collections.Generic.IDictionary<string,int>")
✅ Generate_GivenMethodWithBasicGenericParams_GeneratesEntryCorrectly(parameterType: "System.Collections.Generic.IEnumerable<string>")
✅ Generate_GivenMethodWithBasicGenericParams_GeneratesEntryCorrectly(parameterType: "System.Collections.Generic.List<string>")
✅ Generate_GivenNameShouldBeDefaultLowerCase_GeneratesMetricsWithLowercaseName
✅ Generate_GivenNameShouldBeDefinedCase_GeneratesMetricsWithLowercaseName
✅ Generate_GivenNameShouldBeLowerCase_GeneratesMetricsWithLowercaseName
✅ Generate_GivenNameUnitsDescription_GeneratesMetrics(attribute: "AutoCounter(Name = \"a-counter-name-property\", Un"···, measurementParameter: "")
✅ Generate_GivenNameUnitsDescription_GeneratesMetrics(attribute: "AutoCounter(name: \"a-counter-name-param\", unit: "···, measurementParameter: "")
✅ Generate_GivenNameUnitsDescription_GeneratesMetrics(attribute: "Counter(Name = \"a-counter-name-property\", Unit ="···, measurementParameter: "byte counterValue, ")
✅ Generate_GivenNameUnitsDescription_GeneratesMetrics(attribute: "Counter(name: \"a-counter-name-param\", unit: \"ca"···, measurementParameter: "int counterValue, ")
✅ Generate_GivenNameUnitsDescription_GeneratesMetrics(attribute: "ObservableCounter(Name = \"an-observablecounter-na"···, measurementParameter: "Func<byte> f, ")
✅ Generate_GivenNameUnitsDescription_GeneratesMetrics(attribute: "ObservableCounter(name: \"an-observablecounter-nam"···, measurementParameter: "Func<int> f, ")
✅ Generate_GivenNameUnitsDescription_GeneratesMetrics(attribute: "ObservableGauge(Name = \"an-observablegauge-name-p"···, measurementParameter: "Func<Measurement<byte>> f, ")
✅ Generate_GivenNameUnitsDescription_GeneratesMetrics(attribute: "ObservableGauge(name: \"an-observablegauge-name-pa"···, measurementParameter: "Func<Measurement<int>> f, ")
✅ Generate_GivenNameUnitsDescription_GeneratesMetrics(attribute: "ObservableUpDownCounter(Name = \"an-observableupdo"···, measurementParameter: "Func<IEnumerable<Measurement<byte>>> f, ")
✅ Generate_GivenNameUnitsDescription_GeneratesMetrics(attribute: "ObservableUpDownCounter(name: \"an-observableupdow"···, measurementParameter: "Func<IEnumerable<Measurement<int>>> f, ")
✅ Generate_GivenNameUnitsDescription_GeneratesMetrics(attribute: "UpDownCounter(Name = \"an-updown-counter-name-prop"···, measurementParameter: "byte counterValue, ")
✅ Generate_GivenNameUnitsDescription_GeneratesMetrics(attribute: "UpDownCounter(name: \"an-updown-counter-name-param"···, measurementParameter: "int counterValue, ")
✅ Generate_GivenNameWithAssemblyAndInterfacePrefix_GeneratesMetricsWithPrefix
✅ Generate_GivenNameWithAssemblyPrefix_GeneratesMetricsWithPrefix
✅ Generate_GivenNameWithInterfacePrefix_GeneratesMetricsWithPrefix
✅ Generate_GivenObservablesReturnBool_GeneratesMetrics
✅ Generate_GivenObservablesReturnBoolAndThrowsOnAlreadyInitialized_GeneratesMetrics

✅ Purview.Telemetry.SourceGenerator.TelemetrySourceGeneratorTests

✅ Generate_FromREADMESection_GeneratesTelemetry
✅ Generate_FromWikiActivitiesSection_GeneratesTelemetry
✅ Generate_FromWikiLoggingSection_GeneratesTelemetry
✅ Generate_FromWikiMetricsSection_GeneratesTelemetry
✅ Generate_FromWikiMultiTargetingSection_GeneratesTelemetry
✅ Generate_GivenBasicEventWithException_GeneratesTelemetry
✅ Generate_GivenBasicEventWithExceptionAndDisabledOTelExceptionRulesAndEscape_GeneratesTelemetry
✅ Generate_GivenBasicEventWithExceptionAndEscape_GeneratesTelemetry
✅ Generate_GivenBasicEventWithExplicitExceptionAndEventIsNamedExceptionAndRulesAreTrue_GeneratesTelemetry
✅ Generate_GivenBasicEventWithExplicitExceptionAndNamedExceptionAndRulesAreFalse_GeneratesTelemetry
✅ Generate_GivenBasicTelemetryGen_GeneratesTelemetry
✅ Generate_GivenDuplicateActivityEventContextMethodNames_GeneratesDiagnostic
✅ Generate_GivenDuplicateActivityMethodNames_GeneratesDiagnostic
✅ Generate_GivenDuplicateLoggingMethodNames_GeneratesDiagnostic
✅ Generate_GivenDuplicateMetricsMethodNames_GeneratesDiagnostic
✅ Generate_GivenDuplicateMultiTargetMethodNames_GeneratesDiagnostic
✅ Generate_GivenDuplicateTelemetryGen_GeneratesDiagnostics
✅ Generate_GivenGeneratedAttributes_GeneratesAsExpected
✅ Generate_GivenICacheServiceProviderTelemetry_GeneratesTelemetry
✅ Generate_GivenNoNamespace_GeneratesTelemetry