ukaea / PROCESS

PROCESS is a systems code at UKAEA that calculates in a self-consistent manner the parameters of a fusion power plant with a specified performance, ensuring that its operating limits are not violated, and with the option to optimise to a given function of these parameters.
https://ukaea.github.io/PROCESS/
MIT License
36 stars 11 forks source link

Documentation for updating the unit tests #3336

Open mkovari opened 1 month ago

mkovari commented 1 month ago

One of the factors slowing down development is that at least one unit test always has to be updated after any change that alters the output. It would help if the procedure for updating the tests was documented.

@timothy-nunn @chris-ashe @clmould ?

timothy-nunn commented 5 days ago

The scope of this issue is documenting how to write a unit test or update an existing test. I believe this can be achieved by updating the existing unit test description to provide a deeper definition of a unit test. Linking to pytest documentation will provide most of the understanding for writing a unit test.

Within our docs, I suggest we just include a light description of: