Draft: feat(py-nestml): add unit tests
1 unresolved thread
1 unresolved thread
Merge request reports
Activity
Filter activity
36 36 depends_on('py-astropy', type=('build', 'run')) 37 37 depends_on('py-odetoolbox@2.4:', type=('build', 'run')) 38 38 depends_on('nest', type=('build', 'run')) 39 depends_on('cmake', type=('run', 'test')) 39 40 depends_on('py-pytest', type='test') 41 42 @run_after('install') 43 @on_package_attributes(run_tests=True) 44 def install_test(self): 45 pytest = which('pytest') 46 pytest('tests', '-o', 'norecursedirs="*"') tried to run all tests initially, but it failed because pytest tried to write to the (non-writable) nest install dir, see logs here
running only unit tests seems to work:
============================= test session starts ============================== platform linux -- Python 3.8.11, pytest-7.1.3, pluggy-1.0.0 rootdir: /tmp/spack/spack-stage/spack-stage-py-nestml-7.0.2-opuj2jkebpfz4fjitoii4embe6plvwiu/spack-src collected 131 items tests/ast_builder_test.py . [ 0%] tests/ast_clone_test.py . [ 1%] tests/cocos_test.py .................................................... [ 41%] .......................... [ 61%] tests/comment_test.py . [ 61%] tests/docstring_comment_test.py x. [ 63%] tests/expression_parser_test.py . [ 64%] tests/expression_type_calculation_test.py . [ 64%] tests/function_parameter_templating_test.py . [ 65%] tests/lexer_parser_test.py . [ 66%] tests/magnitude_compatibility_test.py . [ 67%] tests/nestml_printer_test.py ........................ [ 85%] tests/pynestml_frontend_test.py ...... [ 90%] tests/random_number_generators_test.py . [ 90%] tests/special_block_parser_builder_test.py . [ 91%] tests/symbol_table_builder_test.py . [ 92%] tests/symbol_table_resolution_test.py . [ 93%] tests/unit_system_test.py ......... [100%] ================== 130 passed, 1 xfailed in 180.27s (0:03:00) ================== ==> Testing package py-nestml-7.0.2-opuj2jk
please change it to whatever makes the most sense :)
assigned to @chlinssen
unassigned @chlinssen
requested review from @chlinssen