def AssembleTestSuites(): ''' Populates the test suites to run. At least, it should populate the suites: "small", "nightly" and "all" Return ------ suites: A dictionary of suites The set of suites with its test_cases added. ''' suites = KratosUnittest.KratosSuites # Create a test suit with the selected tests (Small tests): smallSuite = suites['small'] #smallSuite.addTest(test_guis.TestGUIs("test_GUIs_1")) #smallSuite.addTest(test_guis.TestGUIs("test_GUIs_2")) smallSuite.addTest(test_kinematic_constraints.TestKinematicConstraints("test_KinematicConstraints_1")) smallSuite.addTest(test_particle_creator_destructor.TestParticleCreatorDestructor("test_CreateSphericParticle1")) smallSuite.addTest(test_particle_creator_destructor.TestParticleCreatorDestructor("test_CreateSphericParticle2")) smallSuite.addTest(test_wall_creator_destructor.TestWallCreatorDestructor("test_CreateWallTriangle")) smallSuite.addTest(test_analytics.TestAnalytics("test_Analytics_1")) #smallSuite.addTest(test_analytics.TestAnalytics("test_Analytics_2")) #smallSuite.addTest(test_analytics.TestAnalytics("test_Analytics_3")) smallSuite.addTest(test_glued_particles.TestGluedParticles("test_Glued_Particles_1")) smallSuite.addTest(test_DEM_2D.TestDEM2D("test_DEM2D_1")) smallSuite.addTest(test_DEM_3D_contact.TestDEM3DContact("test_DEM3D_contact")) smallSuite.addTest(test_DEM_2D_contact.TestDEM2DContact("test_DEM2D_contact")) smallSuite.addTest(test_DEM_2D_inlet.TestDEM2DInlet("test_DEM2D_inlet")) smallSuite.addTest(test_DEM_3D_restitution.TestDEM3DRestitution("test_DEM3D_restitution_1")) smallSuite.addTest(test_DEM_3D_restitution.TestDEM3DRestitution("test_DEM3D_restitution_2")) smallSuite.addTest(test_DEM_2D_restitution.TestDEM2DRestitution("test_DEM2D_restitution_1")) smallSuite.addTest(test_DEM_2D_restitution.TestDEM2DRestitution("test_DEM2D_restitution_2")) smallSuite.addTest(test_DEM_3D_continuum.TestDEM3DContinuum("test_DEM3D_continuum")) smallSuite.addTest(test_DEM_2D_control_module.TestDEM2DControlModule("test_DEM2D_control_module")) smallSuite.addTest(test_post_process.TestPostProcess("test_gid_printing_many_results")) # Create a test suit with the selected tests plus all small tests nightSuite = suites['nightly'] nightSuite.addTest(test_restart.TestRestartOneBall("test_execution")) nightSuite.addTest(test_restart.TestRestartTwoBalls("test_execution")) nightSuite.addTests(smallSuite) # For very long tests that should not be in nightly and you can use to validate validationSuite = suites['validation'] # Create a test suit that contains all the tests: allSuite = suites['all'] allSuite.addTests( smallSuite #KratosUnittest.TestLoader().loadTestsFromTestCases([]) ) return suites
def AssembleTestSuites(): ''' Populates the test suites to run. At least, it should populate the suites: "small", "nightly" and "all" Return ------ suites: A dictionary of suites The set of suites with its test_cases added. ''' suites = KratosUnittest.KratosSuites # Create a test suit with the selected tests (Small tests): smallSuite = suites['small'] smallSuite.addTest(test_guis.TestGUIs("test_GUIs_1")) smallSuite.addTest(test_guis.TestGUIs("test_GUIs_2")) smallSuite.addTest( test_particle_creator_destructor.TestParticleCreatorDestructor( "test_CreateSphericParticle1")) smallSuite.addTest( test_particle_creator_destructor.TestParticleCreatorDestructor( "test_CreateSphericParticle2")) smallSuite.addTest( test_wall_creator_destructor.TestWallCreatorDestructor( "test_CreateWallTriangle")) smallSuite.addTest(test_analytics.TestAnalytics("test_Analytics_1")) #smallSuite.addTest(test_analytics.TestAnalytics("test_Analytics_2")) #smallSuite.addTest(test_analytics.TestAnalytics("test_Analytics_3")) smallSuite.addTest( test_glued_particles.TestGluedParticles("test_Glued_Particles_1")) smallSuite.addTest(test_DEM_2D.TestDEM2D("test_DEM2D_1")) smallSuite.addTest(test_restart.TestRestartOneBall("test_execution")) smallSuite.addTest(test_restart.TestRestartTwoBalls("test_execution")) # Create a test suit with the selected tests plus all small tests nightSuite = suites['nightly'] nightSuite.addTests(smallSuite) # For very long tests that should not be in nightly and you can use to validate validationSuite = suites['validation'] # Create a test suit that contains all the tests: allSuite = suites['all'] allSuite.addTests(smallSuite #KratosUnittest.TestLoader().loadTestsFromTestCases([]) ) return suites
def AssembleTestSuites(): ''' Populates the test suites to run. At least, it should populate the suites: "small", "nightly" and "all" Return ------ suites: A dictionary of suites The set of suites with its test_cases added. ''' suites = KratosUnittest.KratosSuites # Create a test suit with the selected tests (Small tests): smallSuite = suites['small'] #smallSuite.addTest(test_guis.TestGUIs("test_GUIs_1")) #smallSuite.addTest(test_guis.TestGUIs("test_GUIs_2")) smallSuite.addTest( test_particle_creator_destructor.TestParticleCreatorDestructor( "test_CreateSphericParticle1")) smallSuite.addTest( test_wall_creator_destructor.TestWallCreatorDestructor( "test_CreateWallTriangle")) smallSuite.addTest(test_analytics.TestAnalytics("test_Analytics_1")) #smallSuite.addTest(test_analytics.TestAnalytics("test_Analytics_2")) #smallSuite.addTest(test_analytics.TestAnalytics("test_Analytics_3")) smallSuite.addTest( test_glued_particles.TestGluedParticles("test_Glued_Particles_1")) smallSuite.addTest(test_DEM_2D.TestDEM2D("test_DEM2D_1")) smallSuite.addTest( test_DEM_3D_contact.TestDEM3DContact("test_DEM3D_contact")) smallSuite.addTest(test_DEM_2D_inlet.TestDEM2DInlet("test_DEM2D_inlet")) smallSuite.addTest(test_DEM_3D_inlet.TestDEM3DInlet("test_DEM3D_inlet")) smallSuite.addTest( test_inlet.TestPieceWiseLinearDEMInlet("test_piecewise_linear_inlet")) smallSuite.addTest( test_DEM_3D_restitution.TestDEM3DRestitution( "test_DEM3D_restitution_1")) smallSuite.addTest( test_DEM_3D_restitution.TestDEM3DRestitution( "test_DEM3D_restitution_2")) smallSuite.addTest( test_DEM_2D_restitution.TestDEM2DRestitution( "test_DEM2D_restitution_1")) smallSuite.addTest( test_DEM_2D_restitution.TestDEM2DRestitution( "test_DEM2D_restitution_2")) smallSuite.addTest( test_DEM_3D_continuum.TestDEM3DContinuum("test_DEM3D_continuum")) smallSuite.addTest( test_DEM_2D_control_module.TestDEM2DControlModule( "test_DEM2D_control_module")) smallSuite.addTest( test_post_process.TestPostProcess("test_gid_printing_many_results")) smallSuite.addTest( test_friction_decay.TestFrictionDecay("test_Friction_Decay")) smallSuite.addTest( test_forces_and_moments.TestExternalForcesAndMoments( "test_ForcesAndMoments")) smallSuite.addTest( test_history_dependent_CLs.TestHistoryDependentCLs( "test_HistoryDependentCLs")) smallSuite.addTest(test_clusters.TestClusters("test_clusters_1")) smallSuite.addTest(test_DEM_schemes.TestDEMSchemes("test_ForwardEuler")) smallSuite.addTest(test_DEM_schemes.TestDEMSchemes("test_Taylor")) smallSuite.addTest(test_DEM_schemes.TestDEMSchemes("test_Symplectic")) smallSuite.addTest(test_DEM_schemes.TestDEMSchemes("test_Verlet")) smallSuite.addTest( test_random_variable.TestRandomVariable("test_random_variable")) smallSuite.addTest( test_DEM_3D_continuum_vs_discontinuum.TestDEM3DContinuumVsDiscontinuum( "test_DEM3D_continuum_vs_discontinuum")) smallSuite.addTest( test_DEM_2D_contact.TestDEM2DContact("test_DEM2D_contact")) smallSuite.addTest( test_kinematic_constraints.TestKinematicConstraints( "test_KinematicConstraints_1")) smallSuite.addTest( test_DEM_search_flags.TestDEM3DSearchFlag("test_DEM3D_search")) # Create a test suit with the selected tests plus all small tests nightSuite = suites['nightly'] nightSuite.addTest(test_restart.TestRestartOneBall("test_execution")) nightSuite.addTest(test_restart.TestRestartTwoBalls("test_execution")) nightSuite.addTest( test_DEM_search_tolerance.TestSearchTolerance("test_SearchA")) nightSuite.addTest( test_DEM_search_tolerance.TestSearchTolerance("test_SearchB")) nightSuite.addTest( test_DEM_search_tolerance.TestSearchTolerance("test_SearchC")) nightSuite.addTest( test_DEM_search_tolerance.TestSearchTolerance("test_SearchD")) # For very long tests that should not be in nightly and you can use to validate validationSuite = suites['validation'] # Create a test suit that contains all the tests: allSuite = suites['all'] allSuite.addTests(smallSuite) allSuite.addTests(nightSuite) return suites