Files
JuliaFEM.jl/test/runtests_new.jl
T
Jukka Aho bafa3af4d0 test: Add Tutorial 4 - 1-element Quad4 validation (35 tests passing)
Educational validation test for Issue #265 use case (JuliaFEM as reference).

Covers:
- Element creation and connectivity
- Field assignment (geometry, material properties)
- Field retrieval with function call syntax
- Hand-calculated constitutive matrix for plane stress
- Geometry validation (dimensions, center, area)
- Material property validation (physical ranges)

Note: Defers stiffness matrix assembly to future work due to current
Quad4 assembly issues. Focus is on element setup validation that
other FEM developers can use as reference.

Tutorial series now: 107/107 tests passing
- Tutorial 1: Creating elements (5 tests)
- Tutorial 2: Gmsh mesh reading (72 tests)
- Tutorial 4: 1-element validation (35 tests - done before Tutorial 3)
2025-11-09 02:45:29 +02:00

47 lines
1.2 KiB
Julia

# JuliaFEM Test Suite - New Structure
# Educational testing with Literate.jl
using Test, JuliaFEM
# Configuration
const RUN_TUTORIALS = get(ENV, "JULIAFEM_TEST_TUTORIALS", "true") == "true"
const RUN_UNIT = get(ENV, "JULIAFEM_TEST_UNIT", "false") == "true"
const RUN_OLD = get(ENV, "JULIAFEM_TEST_OLD", "false") == "true"
println("="^70)
println("JuliaFEM Test Suite (New Structure)")
println("="^70)
println("Tutorials: ", RUN_TUTORIALS ? "✓" : "✗")
println("Unit tests: ", RUN_UNIT ? "✓" : "✗")
println("Old tests: ", RUN_OLD ? "✓" : "✗")
println("="^70)
# Tutorial Tests
if RUN_TUTORIALS
@testset "Tutorials" begin
@testset "01_Fundamentals" begin
include("tutorials/01_fundamentals/creating_elements.jl")
include("tutorials/01_fundamentals/reading_gmsh_meshes.jl")
include("tutorials/01_fundamentals/validation_1element_quad4.jl")
end
end
end
# Unit Tests
if RUN_UNIT
@testset "Unit Tests" begin
@info "No unit tests yet"
end
end
# Old Tests
if RUN_OLD
@warn "Old tests have 49+ failures - see docs/TEST_FIXES_NEEDED.md"
include("runtests.jl") # Original test suite
end
println()
println("="^70)
println("Complete - See docs/TESTING_PHILOSOPHY.md")
println("="^70)