Open mattsignorelli opened 2 weeks ago
This will be a bit of work but it is needed.
If we set up some pytest CI we could use PyTao
I have intentions of getting pytao's test suite itself running on new commits and releases for this repository (bmad-sim/bmad-ecosystem
) to help with Tao's pipe
(=python
) command regressions/changes. It could also help to address this issue, I think.
A test suite for Tao is necessary.
Even just one single lattice where all the correct values are stored and compared during each test run would go a long way with preventing new bugs from creeping in. E.g., take the ESR lattice and store the correct output for
show lat * -at beta_a@f20.16 ....
etc for as many lattice functions as possible, and the test should compare that against the known values.Same for
show uni
,show spin
,show chrom
, etc...