Skip to content

Create subset of tests for fast local running #2901

Closed

Description

@jonmaddock

A fast set of tests should be defined for rapid local running, perhaps using the marks available in pytest. This should complement the full set suite that runs on the CI.

Activity

  1. je-cook commented on Dec 5, 2025

    @je-cook
    Collaborator

    pytest --durations=0 -n auto . result

    Most likely everything over 20s should be looked either to skip or improve the test.

    Details

    244.13s call     tests/examples/test_examples.py::test_examples
    100.15s call     tests/integration/test_main_int.py::test_vary_run
    89.56s call     tests/regression/test_process_input_files.py::test_input_file[large_tokamak]
    72.29s call     tests/examples/test_examples.py::test_scan
    68.62s call     tests/integration/test_main_int.py::test_plot_proc
    44.45s call     tests/unit/test_tfcoil.py::test_stresscl[stressclparam0]
    43.35s call     tests/regression/test_process_input_files.py::test_input_file[st_regression]
    40.73s call     tests/integration/test_main_int.py::test_vary_run_cwd
    31.32s call     tests/integration/test_plot_proc.py::test_input_file
    29.42s call     tests/unit/test_tfcoil.py::test_extended_plane_strain[extendedplanestrainparam1]
    28.72s call     tests/unit/test_tfcoil.py::test_extended_plane_strain[extendedplanestrainparam0]
    28.60s call     tests/integration/test_plot_proc.py::test_input_file_cwd
    26.93s call     tests/integration/test_main_int.py::test_single_run
    26.32s call     tests/integration/test_main_int.py::test_single_run_cwd
    21.35s call     tests/unit/test_physics.py::test_bootstrap_fraction_sauter[bootstrapfractionsauterparam0]
    20.90s call     tests/regression/test_process_input_files.py::test_input_file[large_tokamak_nof]
    15.97s call     tests/regression/test_process_input_files.py::test_input_file[helias_5b]
    14.38s call     tests/examples/test_examples.py::test_plot_solutions
    8.65s call     tests/unit/test_tfcoil.py::test_stresscl[stressclparam1]
    7.46s call     tests/unit/test_physics.py::test_plasma_composition[plasmacompositionparam0]
    6.98s call     tests/unit/test_impurity_radiation.py::test_zav_of_te
    5.88s call     tests/examples/test_examples.py::test_single_model_evaluation
    3.74s call     tests/unit/test_tfcoil.py::test_plane_stress[planestressparam0]
    2.97s call     tests/regression/test_process_input_files.py::test_input_file[stellarator_helias_eval]
    2.91s call     tests/regression/test_process_input_files.py::test_input_file[large_tokamak_eval]
    2.55s call     tests/regression/test_process_input_files.py::test_input_file[spherical_tokamak_eval]
    2.35s call     tests/integration/test_plot_stress_tf.py::test_input_file
    2.22s call     tests/unit/test_cs_fatigue.py::test_ncycle[ncycleparam0]
    1.99s call     tests/integration/test_pfcoil_int.py::test_efc
    1.89s call     tests/unit/test_resistive_tf_coil.py::test_tf_res_heating[tfresheatingparam0]
    1.89s call     tests/unit/test_resistive_tf_coil.py::test_tf_res_heating[tfresheatingparam1]
    1.77s call     tests/integration/test_main_int.py::test_single_run_with_mfilejson
    1.47s call     tests/integration/test_plot_scans.py::test_plot_scans_stack
    1.38s call     tests/unit/test_pfcoil.py::test_rsid
    1.24s call     tests/unit/test_tfcoil.py::test_eyoung_t_nested_squares[eyoungtnestedsquaresparam0]
    1.09s call     tests/integration/test_plot_radial_build.py::test_plot_radial_build
    0.98s call     tests/examples/test_examples.py::test_csv
    0.95s call     tests/unit/test_pfcoil.py::test_bfield
    0.90s call     tests/unit/test_physics.py::test_conhas
    0.90s call     tests/unit/test_physics.py::test_calculate_plasma_current[plasmacurrentparam0]
    0.84s call     tests/unit/test_mfile2dict.py::test_write_yaml
    0.71s call     tests/unit/test_tfcoil.py::test_tf_coil_self_inductance[tfcindparam1]
    0.71s call     tests/unit/test_physics.py::test_bootstrap_fraction_nevins[bootstrapfractionnevinsparam0]
    0.69s call     tests/unit/test_tfcoil.py::test_tf_coil_self_inductance[tfcindparam0]
    0.69s call     tests/integration/test_plot_scans.py::test_plot_scans_2d_contour
    0.62s call     tests/unit/test_physics.py::test_calculate_beta_limit
    0.57s call     tests/unit/test_cs_fatigue.py::test_surface_stress_intensity_factor[659.9935186733534-0.006310453838040592-0.006310453838040592-0.00089-0.0026699999999999996-1.5707963267948966-35.744426954844926]
    0.55s call     tests/unit/test_physics.py::test_diamagnetic_fraction_hender
    0.51s call     tests/unit/test_tfcoil.py::test_sigvm[0--320000000.0-240000000.0-486621002.42385757]
    0.45s setup    tests/regression/test_process_input_files.py::test_input_file[IFE]
    0.45s call     tests/unit/test_physics.py::test_calculate_plasma_current_peng[arguments0-37.08247253247967]
    0.44s call     tests/integration/test_plot_scans.py::test_plot_scans
    0.36s call     tests/integration/test_write_new_in_dat.py::test_write_new_in_dat
    0.35s call     tests/unit/test_tfcoil.py::test_eyoung_parallel_array[eyoungparallelarrayparam0]
    0.33s call     tests/unit/test_cs_fatigue.py::test_embedded_stress_intensity_factor[659.9935186733534-0.006310453838040592-0.006310453838040592-0.00089-0.0026699999999999996-1.5707963267948966-31.96412802853516]
    0.33s call     tests/regression/test_process_input_files.py::test_input_file[IFE]
    0.27s call     tests/unit/test_physics.py::test_vscalc[voltsecondreqparam0]
    0.27s call     tests/unit/test_tfcoil.py::test_eyoung_series[eyoungseriesparam0]
    0.25s call     tests/integration/test_plot_solutions.py::test_plot_mfile_solutions
    0.24s call     tests/integration/test_costs_bar.py::test_input_file
    0.20s call     tests/integration/test_plot_sankey.py::test_plot_sankey
    0.20s call     tests/unit/test_tfcoil.py::test_sigvm[-280000000.0-0-240000000.0-450777106.7833858]
    0.17s call     tests/unit/test_quench.py::test_calculate_quench_protection_intuitive_gradient
    0.16s call     tests/integration/test_utilities.py::test_in_dat_lib
    0.13s call     tests/unit/test_tfcoil.py::test_eyoung_parallel[eyoungparallelparam0]
    0.12s call     tests/integration/test_costs_pie.py::test_input_file
    0.12s call     tests/integration/test_vmcon.py::test_vmcon[get_case2]
    0.11s call     tests/unit/test_physics.py::test_diamagnetic_fraction_scene
    0.10s call     tests/integration/test_vmcon.py::test_vmcon[get_case1]
    0.09s setup    tests/unit/test_main.py::test_set_mfile
    0.09s setup    tests/unit/test_main.py::test_finish
    0.09s call     tests/integration/test_vmcon.py::test_vmcon[get_case4]
    0.08s call     tests/integration/test_indat.py::test_rewritten_indat_identical
    0.07s call     tests/unit/test_physics.py::test_ps_fraction_scene
    0.07s setup    tests/unit/test_mfile2dict.py::test_parser_succeed
    0.07s call     tests/integration/test_vmcon.py::test_vmcon[get_case5]
    0.07s setup    tests/unit/test_main.py::test_set_output
    0.07s setup    tests/unit/test_main.py::test_set_input
    0.07s call     tests/unit/test_sctfcoil.py::test_protect[protectparam0]
    0.06s setup    tests/unit/test_main.py::test_single_run
    0.06s call     tests/integration/test_mfile_to_csv.py::test_mfile_to_csv
    0.05s setup    tests/unit/test_main.py::test_initialise
    0.05s call     tests/unit/test_main.py::test_initialise
    0.04s call     tests/unit/test_physics.py::test_plasma_composition[plasmacompositionparam1]
    0.04s setup    tests/unit/test_impurity_radiation.py::test_pimpden
    0.04s setup    tests/unit/test_impurity_radiation.py::test_fradcore
    0.04s setup    tests/unit/test_impurity_radiation.py::test_zav_of_te
    0.03s call     tests/unit/test_input.py::test_parse_real[1.0-1.0]
    0.03s call     tests/unit/test_input.py::test_input_array
    0.03s call     tests/unit/test_input.py::test_parse_real[0.10D1-1.0]
    0.03s call     tests/unit/test_input.py::test_parse_real[10.0e-1-1.0]
    0.03s call     tests/unit/test_input.py::test_parse_real[1.0D-0-1.0]
    0.03s call     tests/unit/test_input.py::test_parse_real[1.0E-0-1.0]
    0.03s call     tests/unit/test_input.py::test_exact_parsing[0.3]
    0.03s call     tests/unit/test_input.py::test_parse_real[10.0D-1-1.0]
    0.03s call     tests/unit/test_input.py::test_parse_real[10.0d-1-1.0]
    0.03s call     tests/unit/test_input.py::test_parse_real[8.0d-3-0.008]
    0.03s setup    tests/examples/test_examples.py::test_examples
    0.03s call     tests/unit/test_input.py::test_parse_real[8.0E-3-0.008]
    0.03s call     tests/unit/test_input.py::test_parse_real[1.0D+0-1.0]
    0.03s call     tests/unit/test_input.py::test_parse_real[0.008-0.008]
    0.03s call     tests/unit/test_input.py::test_exact_parsing[0.13134204235647895]
    0.03s call     tests/unit/test_input.py::test_parse_real[1.0E0-1.0]
    0.03s call     tests/unit/test_input.py::test_parse_real[1.0D0-1.0]
    0.03s call     tests/unit/test_input.py::test_parse_real[10.0E-1-1.0]
    0.03s call     tests/unit/test_input.py::test_parse_real[0.546816593988753-0.546816593988753]
    0.03s call     tests/unit/test_input.py::test_parse_real[1.0e-0-1.0]
    0.03s call     tests/unit/test_input.py::test_parse_real[1.0d-0-1.0]
    0.03s call     tests/unit/test_input.py::test_exact_parsing[0.7]
    0.03s call     tests/unit/test_input.py::test_parse_real[0.10d+1-1.0]
    0.03s call     tests/unit/test_input.py::test_parse_real[0.10e+1-1.0]
    0.03s call     tests/unit/test_input.py::test_parse_real[0.10e1-1.0]
    0.03s setup    tests/examples/test_examples.py::test_scan
    0.03s call     tests/unit/test_input.py::test_parse_real[0.10E+1-1.0]
    0.02s call     tests/unit/test_input.py::test_exact_parsing[0.1293140904093427]
    0.02s call     tests/unit/test_input.py::test_parse_real[8.0e-3-0.008]
    0.02s call     tests/unit/test_input.py::test_parse_real[0.10D+1-1.0]
    0.02s call     tests/unit/test_input.py::test_exact_parsing[0.75]
    0.02s call     tests/unit/test_input.py::test_exact_parsing[0.546816593988753]
    0.02s setup    tests/integration/test_main_int.py::test_vary_run
    0.02s call     tests/unit/test_input.py::test_parse_real[0.10d1-1.0]
    0.02s call     tests/unit/test_input.py::test_parse_real[0.10E1-1.0]
    0.02s call     tests/unit/test_input.py::test_parse_input
    0.02s call     tests/unit/test_input.py::test_parse_real[1.0d+0-1.0]
    0.02s call     tests/unit/test_input.py::test_parse_real[1.0d0-1.0]
    0.02s call     tests/unit/test_input.py::test_parse_real[1.0E+0-1.0]
    0.02s call     tests/unit/test_input.py::test_parse_real[1.0e0-1.0]
    0.02s call     tests/unit/test_tfcoil.py::test_plane_stress[planestressparam2]
    0.02s call     tests/unit/test_input.py::test_parse_real[8.0D-3-0.008]
    0.02s call     tests/unit/test_input.py::test_parse_real[1.0e+0-1.0]
    0.02s setup    tests/integration/test_plot_stress_tf.py::test_input_file
    0.02s call     tests/unit/test_neoclassics.py::test_init_neoclassics[initneoclassicsparam0]
    0.02s call     tests/unit/test_coolprop_interface.py::test_water_with_pressure_temp
    0.02s call     tests/unit/test_mfile2dict.py::test_write_json
    0.01s setup    tests/unit/test_confinement_time.py::test_confinement_time[lackner_gottardi_confinement_time-args15-0.13120344887319335]
    0.01s teardown tests/regression/test_process_input_files.py::test_input_file[st_regression]
    0.01s setup    tests/examples/test_examples.py::test_plot_solutions
    0.01s setup    tests/unit/test_build.py::test_plasma_outboard_edge_toroidal_ripple_additional[param0]
    0.01s call     tests/unit/test_tfcoil.py::test_plane_stress[planestressparam1]
    0.01s setup    tests/unit/test_availability.py::test_calc_u_unplanned_bop
    0.01s setup    tests/integration/test_write_new_in_dat.py::test_write_new_in_dat
    0.01s teardown tests/regression/test_process_input_files.py::test_input_file[large_tokamak]
    0.01s setup    tests/integration/test_utilities.py::test_in_dat_lib
    0.01s setup    tests/unit/test_tfcoil.py::test_plane_stress[planestressparam0]
    0.01s setup    tests/unit/test_ccfe_hcpb.py::test_st_cp_angle_fraction[stcpanglefractionparam0]
    0.01s call     tests/unit/test_costs_2015.py::test_calc_land_costs[calclandcostsparam0]
    0.01s setup    tests/unit/test_blanket_library.py::test_pumppower_secondary_pb_li
    0.01s setup    tests/examples/test_examples.py::test_single_model_evaluation
    0.01s call     tests/unit/test_costs_2015.py::test_calc_land_costs[calclandcostsparam1]
    0.01s setup    tests/integration/test_plot_scans.py::test_plot_scans
    0.01s setup    tests/integration/test_costs_bar.py::test_input_file
    0.01s call     tests/integration/test_blanket_library_int.py::test_liquid_breeder_properties_part_1
    0.01s call     tests/unit/test_ife.py::test_sombld[sombldparam0]
    0.01s setup    tests/examples/test_examples.py::test_csv
    0.01s call     tests/unit/test_costs_2015.py::test_calc_remaining_subsystems[calcremainingsubsystemsparam0]
    0.01s call     tests/unit/test_costs_2015.py::test_calc_remaining_subsystems[calcremainingsubsystemsparam1]
    0.01s call     tests/unit/test_costs_2015.py::test_calc_energy_conversion_system[calcenergyconversionsystemparam1]
    0.01s setup    tests/integration/test_plot_proc.py::test_input_file_cwd
    0.01s call     tests/unit/test_ife.py::test_hylbld[hylbldparam0]
    0.01s call     tests/unit/test_costs_2015.py::test_calc_building_costs[calcbuildingcostsparam1]
    0.01s setup    tests/integration/test_main_int.py::test_vary_run_cwd
    0.01s setup    tests/integration/test_plot_proc.py::test_input_file
    0.01s setup    tests/integration/test_plot_radial_build.py::test_plot_radial_build
    0.01s setup    tests/unit/test_tfcoil.py::test_tf_global_geometry[0-False-0.0-False-0.0-16-0.5-0.1-2.0-1.5-5.0-0.3-expected0]
    0.01s setup    tests/integration/test_plot_scans.py::test_plot_scans_2d_contour
    0.01s setup    tests/integration/test_main_int.py::test_single_run_with_mfilejson
    0.01s call     tests/unit/test_physics.py::test_rether
    0.01s setup    tests/integration/test_plot_scans.py::test_plot_scans_stack
    0.01s setup    tests/unit/test_tfcoil.py::test_plane_stress[planestressparam2]
    0.01s call     tests/unit/test_costs_2015.py::test_calc_tf_coil_costs[calctfcoilcostsparam0]
    
    (1954 durations < 0.005s hidden.  Use -vv to show these durations.)

  2. added theissue type on Feb 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions