FEM: unit tests, add app to test fem module name

This commit is contained in:
Bernd Hahnebach
2020-05-22 15:55:56 +02:00
parent f3f43208cf
commit 4c9c66015a
3 changed files with 7 additions and 7 deletions

View File

@@ -31,7 +31,7 @@ SET(FemBaseModules_SRCS
Init.py
InitGui.py
ObjectsFem.py
TestFem.py
TestFemApp.py
)
SET(FemCommands_SRCS

View File

@@ -52,8 +52,8 @@ if sys.version_info.major >= 3:
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

View File

@@ -66,8 +66,8 @@ import Test, femtest.app.test_object
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
@@ -90,8 +90,8 @@ unittest.TextTestRunner().run(alltest)
./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"