Hello EPICS community,
I have a question, that is quite broad in its nature (I know these don’t go down well here but thought I’d try anyway), regarding testing in EPICS.
Specifically I am interested in how people using EPICS generally test their applications and the logic in IOCs, at a unit testing level.
I am not talking about testing epics-base, of course I trust that your tests provide good coverage
J. What I am interested in is how can I test logic that is in an IOC (db file or via smart database).
Essentially this boils down to 4 main questions:
- Given a db file what is the standard way to test logic and records inside it in an automated fashion?
- Using the V4 smart database, what is the standard way to mock the protocol i.e. PVA, to do more unit testing rather than integration testing?
- How do people mock hardware? Is this done by using the asynPortDriver interface?
- Has anyone tried using other libraries, such as google test, Catch2, doctest,… to do unit testing in EPICS? If so, how can I set this up with the EPICS build system?
Kind regards,
Tom