Commit Graph
4 Commits
Author SHA1 Message Date
Pasukhin Dmitry 0804c2b3f9 Testing - Migration QADraw tests to GTests (#1235)
- Removed multiple legacy DRAW test scripts and several QABugs DRAW command implementations.
- Added new GTest suites covering the migrated regressions in ModelingData/ModelingAlgorithms/FoundationClasses/DataExchange/ApplicationFramework.
- Updated multiple `FILES.cmake` lists to compile/link the new tests; introduced an additional `STEPControl_Writer::SetShapeFixParameters()` overload.
2026-04-26 12:22:37 +01:00
Pasukhin Dmitry 83929118e7 Modeling - Fix segfault in ChFi3d_Builder::IntersectMoreCorner (#1163)
Add null guards for two crash sites in IntersectMoreCorner where
topology map lookups can fail on shapes from prior boolean/chamfer
operations due to stale TShape pointers:

- Move Arcprol null check before cherche_face call (was after it,
  causing misleading exception on null edge argument).
- Add Arcprolbis null check before use in BRep_Tool::Parameter,
  which dereferences null TShape pointer causing segfault.

Both exceptions are caught by ChFi3d_Builder::Compute() and result
in graceful IsDone() == false instead of crash.

Add regression GTests for chamfer after boolean fusion and
sequential chamfer operations.
2026-04-04 10:04:32 +01:00
Pasukhin Dmitry e384f0bb93 Testing - Add unit tests for geometric classes and conversions (#1099)
- Introduced new tests for TopExp class to validate shape mapping and vertex retrieval.
- Added tests for Geom_Circle, Geom_Line, and Geom_Plane classes to ensure correct geometric behavior and transformations.
- Implemented tests for GCPnts_AbscissaPoint to verify length calculations and parameter retrieval for lines and circles.
- Created conversion tests in GeomConvert to check the accuracy of converting geometric entities to B-spline representations.
- Updated CMake files to include new test files for the added tests.
2026-02-20 20:25:09 +00:00
Pasukhin Dmitry 876ccbe977 Configuration - Add support for Google Test framework in CMake #443
Enhance Google Test integration and add support for test projects.
Each Toolkit have GTests folder with place for new tests.
For adding new tests needs to extend FILES.cmake files in each GTests folder.
The single executable is created for each toolkit with all tests.
The tests grouped by module and toolkit with :: as separator.
Added option to download GTest by Cmake if not found.
Add GTest for PLib_JacobiPolynomial with comprehensive test cases
Add GTest for TCollection_AsciiString and TCollection_ExtendedString
Set C++ standard to C++14 for GTest compatibility if required
2025-03-24 08:58:02 +00:00