From 5feb8c0dfb23870557f3af0cccc3c908eaf65913 Mon Sep 17 00:00:00 2001 From: Jukka Aho Date: Fri, 12 Dec 2025 23:49:41 +0200 Subject: [PATCH] test: add test suites for new DOF-based architecture Add test includes for new architecture components: fields, physics, element interpolation, materials, topology, and validation. - Add LocalField type test - Add fields test suite (test_local_field.jl) - Add physics test suite (test_strain.jl) - Add element interpolation test suite (test_interpolate_local_fields.jl) - Add material test suites (state variables, traits, global cache, plasticity, workspace) - Add topology test suites (segments, triangles, quadrilaterals, entities, etc.) - Add validation test (test_plasticity_simple.jl) - Comment out obsolete topology type extraction test --- test/runtests.jl | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/test/runtests.jl b/test/runtests.jl index 6ab3e7c..e1c75c2 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -31,6 +31,46 @@ using JuliaFEM, Test @test LinearElastic isa Type @test Hex8 isa Type @test Tet4 isa Type + @test LocalField isa Type + end + + # Field tests + @testset "Fields" begin + include("fields/test_local_field.jl") + end + + # Physics tests + @testset "Physics" begin + include("physics/test_strain.jl") + end + + # Element interpolation tests + @testset "Element Interpolation" begin + include("elements/test_interpolate_local_fields.jl") + end + + # Material tests + @testset "Materials" begin + include("materials/test_state_variables.jl") + include("materials/test_traits.jl") + include("materials/test_global_material_cache.jl") + include("materials/test_plasticity_integration.jl") + include("materials/test_cantilever_material_cache_zero_allocations.jl") + include("materials/test_assembly_workspace_refactor.jl") + end + + # Topology tests + @testset "Topology" begin + include("topology/test_segments.jl") + include("topology/test_triangles.jl") + include("topology/test_quadrilaterals.jl") + include("topology/test_topology_entities_tetrahedron.jl") + include("topology/test_hexahedra.jl") + include("topology/test_pyramids.jl") + include("topology/test_wedges.jl") + # include("topology/test_topology_type_extraction.jl") # DISABLED: obsolete API (entities don't carry topology) + include("topology/test_topological_invariance.jl") + include("topology/test_entity_dimensions.jl") end # Domain-specific tests @@ -40,6 +80,7 @@ using JuliaFEM, Test # Validation tests include("validation/test_cantilever_regression.jl") + include("validation/test_plasticity_simple.jl") end # Note: All legacy tests have been moved to test/broken/