Skip to content

Additional filtering of namespaces #340

Additional filtering of namespaces

Additional filtering of namespaces #340

GitHub Actions / Test report failed May 1, 2024 in 2s

200 passed, 3 failed and 0 skipped

Tests failed

Report Passed Failed Skipped Time
TestResults/AXSharp.Compiler.CsTests.csproj_net7.0.xml 86✅ 3❌ 7s
TestResults/AXSharp.RenderableContent.Tests.csproj_net7.0.xml 57✅ 2s
TestResults/AXSharp.RenderableContent.Tests.csproj_net8.0.xml 57✅ 1s

❌ TestResults/AXSharp.Compiler.CsTests.csproj_net7.0.xml

89 tests were completed in 7s with 86 passed, 3 failed and 0 skipped.

Test suite Passed Failed Skipped Time
AXSharp.Compiler.CsTests.CompilerOmitsAttributeLegacyTests 1✅ 3ms
AXSharp.Compiler.CsTests.CompilerOmitsAttributeTests 3✅ 1ms
AXSharp.Compiler.CsTests.CsOnlinerSourceBuilderTests 33✅ 1❌ 2s
AXSharp.Compiler.CsTests.CsPlainSourceBuilderTests 33✅ 1❌ 482ms
AXSharp.Compiler.CsTests.PackageReferenceTests 1✅ 0ms
AXSharp.Compiler.CsTests.PragmasExtensionsTests 10✅ 90ms
AXSharp.CompilerTests.Integration.Cs.IxProjectTests 5✅ 1❌ 3s

✅ AXSharp.Compiler.CsTests.CompilerOmitsAttributeLegacyTests

✅ CompilerOmitsAttributeCtorTest

✅ AXSharp.Compiler.CsTests.CompilerOmitsAttributeTests

✅ CanConstruct
✅ CannotConstructWithNullOmissions
✅ OmissionsIsInitializedCorrectly

❌ AXSharp.Compiler.CsTests.CsOnlinerSourceBuilderTests

✅ abstract_members
✅ array_declaration
✅ class_all_primitives
❌ class_extended_by_known_type
	Assert.Equal() Failure
	          ↓ (pos 0)
	Expected: using Simatic.Ax.Stateframework;
	Actual:   
	          ↑ (pos 0)
✅ class_extends
✅ class_extends_and_implements
✅ class_generic_extension
✅ class_implements
✅ class_implements_multiple
✅ class_internal
✅ class_no_access_modifier
✅ class_with_complex_members
✅ class_with_non_public_members
✅ class_with_pragmas
✅ class_with_primitive_members
✅ class_with_using_directives
✅ compileromitsattribute
✅ configuration
✅ enum_simple
✅ file_with_unsupported
✅ file_with_usings
✅ makereadonce
✅ makereadonly
✅ misc
✅ mixed_access
✅ ref_to_simple
✅ simple_empty_class
✅ simple_empty_class_within_namespace
✅ struct_simple
✅ type_named_values
✅ type_named_values_literals
✅ type_with_enum
✅ types_with_name_attributes
✅ types_with_property_attributes

❌ AXSharp.Compiler.CsTests.CsPlainSourceBuilderTests

✅ abstract_members
✅ array_declaration
✅ class_all_primitives
❌ class_extended_by_known_type
	Assert.Equal() Failure
	          ↓ (pos 0)
	Expected: using Pocos.Simatic.Ax.Stateframework;
	Actual:   
	          ↑ (pos 0)
✅ class_extends
✅ class_extends_and_implements
✅ class_generic_extension
✅ class_implements
✅ class_implements_multiple
✅ class_internal
✅ class_no_access_modifier
✅ class_with_complex_members
✅ class_with_non_public_members
✅ class_with_pragmas
✅ class_with_primitive_members
✅ class_with_using_directives
✅ compileromitsattribute
✅ configuration
✅ enum_simple
✅ file_with_unsupported
✅ file_with_usings
✅ makereadonce
✅ makereadonly
✅ misc
✅ mixed_access
✅ ref_to_simple
✅ simple_empty_class
✅ simple_empty_class_within_namespace
✅ struct_simple
✅ type_named_values
✅ type_named_values_literals
✅ type_with_enum
✅ types_with_name_attributes
✅ types_with_property_attributes

✅ AXSharp.Compiler.CsTests.PackageReferenceTests

✅ retrieve_metadata_from_package_success

✅ AXSharp.Compiler.CsTests.PragmasExtensionsTests

✅ should_assign_generic_type_to_extender
✅ should_assign_generic_type_to_extender_as_plain
✅ should_declare_property
✅ should_get_attribute_source
✅ should_set_generic_multiple_attributes_no_constraints
✅ should_set_generic_multiple_attributes_with_constraints
✅ should_set_generic_single_attributes_no_constraints
✅ should_set_generic_single_attributes_with_constraints
✅ should_set_property_number
✅ should_set_property_string

❌ AXSharp.CompilerTests.Integration.Cs.IxProjectTests

✅ should_clean_output_folder
✅ should_create_files_from_source_to_generated_output_folder
✅ should_generate_all_even_when_fails_somewhere
✅ should_get_project_name
❌ should_match_expected_and_generated_whole_project
	Assert.Equal() Failure
	          ↓ (pos 0)
	Expected: using Simatic.Ax.Stateframework;
	Actual:   
	          ↑ (pos 0)
✅ should_retrieve_dependencies_and_use_types_from_referenced_project

✅ TestResults/AXSharp.RenderableContent.Tests.csproj_net7.0.xml

57 tests were completed in 2s with 57 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
AXSharp.RenderableContent.Tests.ComponentServiceTests 30✅ 11ms
AXSharp.RenderableContent.Tests.RenderableContentTests 27✅ 697ms

✅ AXSharp.RenderableContent.Tests.ComponentServiceTests

✅ Get_BaseGenericControlComponent_NotNullAreEqual
✅ Get_BaseGenericIntDisplayComponent_NotNullAreEqual
✅ Get_BoolControlComponentWithBuilder_NotNullAreEqual
✅ Get_BoolControlView_NotNullAreEqual
✅ Get_BoolDisplayComponentWithBuilder_NotNullAreEqual
✅ Get_BoolDisplayView_NotNullAreEqual
✅ Get_BoolShadowControlView_NotNullAreEqual
✅ Get_BoolShadowDisplayView_NotNullAreEqual
✅ Get_ComponentWithinPipeline_NotNullAreEqual
✅ Get_ComponentWithinPipelineEmptyString_Unsuccessfull
✅ Get_ComponentWithinPipelineRandomString_Unsuccessfull
✅ Get_DateControlView_NotNullAreEqual
✅ Get_DateDisplayView_NotNullAreEqual
✅ Get_DateShadowControlView_NotNullAreEqual
✅ Get_DateShadowDisplayView_NotNullAreEqual
✅ Get_DateTimeControlView_NotNullAreEqual
✅ Get_DateTimeDisplayComponentWithBuilder_NotNullAreEqual
✅ Get_DateTimeDisplayView_NotNullAreEqual
✅ Get_DateTimeShadowControlView_NotNullAreEqual
✅ Get_DateTimeShadowDisplayView_NotNullAreEqual
✅ Get_GenericBaseControlComponentWithBuilder_NotNullAreEqual
✅ Get_GenericBaseControlWithinPipeline_NotNullAreEqual
✅ Get_GenericBaseDisplayComponentWithBuilder_NotNullAreEqual
✅ Get_GenericEnumControlComponentWithBuilderPipeline_NotNullAreEqual
✅ Get_GenericEnumDisplayComponentWithBuilder_NotNullAreEqual
✅ Get_GenericEnumRandomString_Unsuccessfull
✅ Get_TimeOfDayControlView_NotNullAreEqual
✅ Get_TimeOfDayDisplayView_NotNullAreEqual
✅ Get_TimeOfDayShadowControlView_NotNullAreEqual
✅ Get_TimeOfDayShadowDisplayView_NotNullAreEqual

✅ AXSharp.RenderableContent.Tests.RenderableContentTests

✅ Render_prgWeatherStations_Tabs_Successfull
✅ Render_stTestComplex_Success
✅ Render_stTestEmpty_Success
✅ Render_stTestEnum_Success
✅ Render_stTestLayoutOverwrite_Success
✅ Render_stTestLayouts_Border_Stack_Successfull
✅ Render_stTestLayouts_Border_Tabs_Successfull
✅ Render_stTestLayouts_Border_UniformGrid_Successfull
✅ Render_stTestLayouts_Border_Wrap_Successfull
✅ Render_stTestLayouts_GroupBox_Stack_Successfull
✅ Render_stTestLayouts_GroupBox_Tabs_Successfull
✅ Render_stTestLayouts_GroupBox_UniformGrid_Successfull
✅ Render_stTestLayouts_GroupBox_Wrap_Successfull
✅ Render_stTestLayouts_Stack_Successfull
✅ Render_stTestLayouts_Tabs_Successfull
✅ Render_stTestLayouts_Uniform_Successfull
✅ Render_stTestLayouts_Wrap_Successfull
✅ Render_stTestMixed_Success
✅ Render_stTestMultipleLayouts_Success
✅ Render_stTestMultipleNested_TabsAndComples_Successfull
✅ Render_stTestPrimitive_Wrap_Success
✅ Render_stTestRenderIgnore_Control_Bool_Ignored
✅ Render_stTestRenderIgnore_Display_Date_Ignored
✅ Render_stTestRenderIgnore_ShadowDisplayControl_DateAndBool_Ignored
✅ Render_stTestSimple_Success
✅ Render_stTestSimpleNested_Success
✅ Render_stTestWithoutLayouts_Success

✅ TestResults/AXSharp.RenderableContent.Tests.csproj_net8.0.xml

57 tests were completed in 1s with 57 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
AXSharp.RenderableContent.Tests.ComponentServiceTests 30✅ 10ms
AXSharp.RenderableContent.Tests.RenderableContentTests 27✅ 630ms

✅ AXSharp.RenderableContent.Tests.ComponentServiceTests

✅ Get_BaseGenericControlComponent_NotNullAreEqual
✅ Get_BaseGenericIntDisplayComponent_NotNullAreEqual
✅ Get_BoolControlComponentWithBuilder_NotNullAreEqual
✅ Get_BoolControlView_NotNullAreEqual
✅ Get_BoolDisplayComponentWithBuilder_NotNullAreEqual
✅ Get_BoolDisplayView_NotNullAreEqual
✅ Get_BoolShadowControlView_NotNullAreEqual
✅ Get_BoolShadowDisplayView_NotNullAreEqual
✅ Get_ComponentWithinPipeline_NotNullAreEqual
✅ Get_ComponentWithinPipelineEmptyString_Unsuccessfull
✅ Get_ComponentWithinPipelineRandomString_Unsuccessfull
✅ Get_DateControlView_NotNullAreEqual
✅ Get_DateDisplayView_NotNullAreEqual
✅ Get_DateShadowControlView_NotNullAreEqual
✅ Get_DateShadowDisplayView_NotNullAreEqual
✅ Get_DateTimeControlView_NotNullAreEqual
✅ Get_DateTimeDisplayComponentWithBuilder_NotNullAreEqual
✅ Get_DateTimeDisplayView_NotNullAreEqual
✅ Get_DateTimeShadowControlView_NotNullAreEqual
✅ Get_DateTimeShadowDisplayView_NotNullAreEqual
✅ Get_GenericBaseControlComponentWithBuilder_NotNullAreEqual
✅ Get_GenericBaseControlWithinPipeline_NotNullAreEqual
✅ Get_GenericBaseDisplayComponentWithBuilder_NotNullAreEqual
✅ Get_GenericEnumControlComponentWithBuilderPipeline_NotNullAreEqual
✅ Get_GenericEnumDisplayComponentWithBuilder_NotNullAreEqual
✅ Get_GenericEnumRandomString_Unsuccessfull
✅ Get_TimeOfDayControlView_NotNullAreEqual
✅ Get_TimeOfDayDisplayView_NotNullAreEqual
✅ Get_TimeOfDayShadowControlView_NotNullAreEqual
✅ Get_TimeOfDayShadowDisplayView_NotNullAreEqual

✅ AXSharp.RenderableContent.Tests.RenderableContentTests

✅ Render_prgWeatherStations_Tabs_Successfull
✅ Render_stTestComplex_Success
✅ Render_stTestEmpty_Success
✅ Render_stTestEnum_Success
✅ Render_stTestLayoutOverwrite_Success
✅ Render_stTestLayouts_Border_Stack_Successfull
✅ Render_stTestLayouts_Border_Tabs_Successfull
✅ Render_stTestLayouts_Border_UniformGrid_Successfull
✅ Render_stTestLayouts_Border_Wrap_Successfull
✅ Render_stTestLayouts_GroupBox_Stack_Successfull
✅ Render_stTestLayouts_GroupBox_Tabs_Successfull
✅ Render_stTestLayouts_GroupBox_UniformGrid_Successfull
✅ Render_stTestLayouts_GroupBox_Wrap_Successfull
✅ Render_stTestLayouts_Stack_Successfull
✅ Render_stTestLayouts_Tabs_Successfull
✅ Render_stTestLayouts_Uniform_Successfull
✅ Render_stTestLayouts_Wrap_Successfull
✅ Render_stTestMixed_Success
✅ Render_stTestMultipleLayouts_Success
✅ Render_stTestMultipleNested_TabsAndComples_Successfull
✅ Render_stTestPrimitive_Wrap_Success
✅ Render_stTestRenderIgnore_Control_Bool_Ignored
✅ Render_stTestRenderIgnore_Display_Date_Ignored
✅ Render_stTestRenderIgnore_ShadowDisplayControl_DateAndBool_Ignored
✅ Render_stTestSimple_Success
✅ Render_stTestSimpleNested_Success
✅ Render_stTestWithoutLayouts_Success

Annotations

Check failure on line 314 in src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/Cs/CsSourceBuilderTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test report

AXSharp.Compiler.CsTests.CsOnlinerSourceBuilderTests ► class_extended_by_known_type

Failed test found in:
  TestResults/AXSharp.Compiler.CsTests.csproj_net7.0.xml
Error:
  Assert.Equal() Failure
            ↓ (pos 0)
  Expected: using Simatic.Ax.Stateframework;
  Actual:   
            ↑ (pos 0)
Raw output
Assert.Equal() Failure
          ↓ (pos 0)
Expected: using Simatic.Ax.Stateframework;
Actual:   
          ↑ (pos 0)
   at AXSharp.Compiler.CsTests.CsSourceBuilderTests.CompareOutputs(String memberName) in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.compiler\tests\AXSharp.Compiler.CsTests\Cs\CsSourceBuilderTests.cs:line 314
   at AXSharp.Compiler.CsTests.CsSourceBuilderTests.class_extended_by_known_type() in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.compiler\tests\AXSharp.Compiler.CsTests\Cs\CsSourceBuilderTests.cs:line 170
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line 314 in src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/Cs/CsSourceBuilderTests.cs

See this annotation in the file changed.

@github-actions github-actions / Test report

AXSharp.Compiler.CsTests.CsPlainSourceBuilderTests ► class_extended_by_known_type

Failed test found in:
  TestResults/AXSharp.Compiler.CsTests.csproj_net7.0.xml
Error:
  Assert.Equal() Failure
            ↓ (pos 0)
  Expected: using Pocos.Simatic.Ax.Stateframework;
  Actual:   
            ↑ (pos 0)
Raw output
Assert.Equal() Failure
          ↓ (pos 0)
Expected: using Pocos.Simatic.Ax.Stateframework;
Actual:   
          ↑ (pos 0)
   at AXSharp.Compiler.CsTests.CsSourceBuilderTests.CompareOutputs(String memberName) in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.compiler\tests\AXSharp.Compiler.CsTests\Cs\CsSourceBuilderTests.cs:line 314
   at AXSharp.Compiler.CsTests.CsSourceBuilderTests.class_extended_by_known_type() in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.compiler\tests\AXSharp.Compiler.CsTests\Cs\CsSourceBuilderTests.cs:line 170
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

Check failure on line 131 in src/AXSharp.compiler/tests/AXSharp.Compiler.CsTests/Integration.Cs/IxProjectTests.IntegrationCs.cs

See this annotation in the file changed.

@github-actions github-actions / Test report

AXSharp.CompilerTests.Integration.Cs.IxProjectTests ► should_match_expected_and_generated_whole_project

Failed test found in:
  TestResults/AXSharp.Compiler.CsTests.csproj_net7.0.xml
Error:
  Assert.Equal() Failure
            ↓ (pos 0)
  Expected: using Simatic.Ax.Stateframework;
  Actual:   
            ↑ (pos 0)
Raw output
Assert.Equal() Failure
          ↓ (pos 0)
Expected: using Simatic.Ax.Stateframework;
Actual:   
          ↑ (pos 0)
   at AXSharp.CompilerTests.Integration.Cs.IxProjectTests.should_match_expected_and_generated_whole_project() in C:\W\Develop\gh\ix-ax\GHA\GHA-1\_work\axsharp\axsharp\src\AXSharp.compiler\tests\AXSharp.Compiler.CsTests\Integration.Cs\IxProjectTests.IntegrationCs.cs:line 131
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)