Skip to content

Commit

Permalink
FEM: unit tests, add app to test fem module name
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed May 22, 2020
1 parent f3f4320 commit 4c9c660
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Mod/Fem/CMakeLists.txt
Expand Up @@ -31,7 +31,7 @@ SET(FemBaseModules_SRCS
Init.py
InitGui.py
ObjectsFem.py
TestFem.py
TestFemApp.py
)

SET(FemCommands_SRCS
Expand Down
4 changes: 2 additions & 2 deletions src/Mod/Fem/Init.py
Expand Up @@ -52,8 +52,8 @@
sys.meta_path.append(FemMigrateApp())


# add FEM unit tests
FreeCAD.__unit_test__ += ["TestFem"]
# add FEM App unit tests
FreeCAD.__unit_test__ += ["TestFemApp"]


# add import and export file types
Expand Down
8 changes: 4 additions & 4 deletions src/Mod/Fem/TestFem.py → src/Mod/Fem/TestFemApp.py
Expand Up @@ -66,8 +66,8 @@
Test.runTestsFromClass(femtest.app.test_object.TestObjectCreate)
# all FEM tests
import Test, TestFem
Test.runTestsFromModule(TestFem)
import Test, TestFemApp
Test.runTestsFromModule(TestFemApp)
# module
import Test, femtest.app.test_common
Expand All @@ -90,8 +90,8 @@
./bin/FreeCADCmd --run-test 0
# all FEM tests
./bin/FreeCAD --run-test "TestFem"
./bin/FreeCADCmd --run-test "TestFem"
./bin/FreeCAD --run-test "TestFemApp"
./bin/FreeCADCmd --run-test "TestFemApp"
# import Fem and FemGui
./bin/FreeCAD --run-test "femtest.app.test_femimport"
Expand Down

0 comments on commit 4c9c660

Please sign in to comment.