ISISComputingGroup / ISISComputingGroup/IBEX
SANS2D: Motion Setpoints Tolerance Set Through Macro System Test
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 6
- Fork
- 2
- Merge medio
- 16h 40m
- PR unite (30g)
- 2
Descrizione
As a: Developer
I would like to create a system test to test the motion setpoints tolerance is set to the underlying driver when passed in through a macro to try and prevent problems such as the one which occurred in [#7045](https://github.com/ISISComputingGroup/IBEX/issues/7045) from happening again.
When writing the system test, you could refer to `def test_GIVEN_XD_WHEN_move_motor_THEN_tolerance_checked(self, _, axis_num):` which can be found [HERE](https://github.dev/ISISComputingGroup/EPICS-IOC_Test_Framework/blob/master/tests/motion_setpoints.py) in `EPICS-IOC_Test_Framework\EPICS-IOC_Test_Framework\tests\motion_setpoints.py`
To test a failure of the newly created system test, try reapplying changes made [HERE](https://github.com/ISISComputingGroup/EPICS-motionSetPoints/pull/23/files) to resolve the problem where the constructer overrides value set in db.
### Acceptance Criteria
_What is the acceptance criteria?_
- [ ] A new system test exists and successfully tests the setting of the setpoint to the driver when passed through a macro.
### Extra Information
_Why it is needed?_
Having a system test to check this should aid in reducing support issues of this nature going forward.
Putting such a system test in place would be nice to have given passing the setpoint to the db through a macro is a common use case.
_Where required files/links are_
- Hot-Fix location `motionSetPointsApp/src/motionSetPoints.cpp` implemented as part of: [#23](https://github.com/ISISComputingGroup/EPICS-motionSetPoints/pull/23/files)
- System Tests: `EPICS-IOC_Test_Framework\EPICS-IOC_Test_Framework\tests\motion_setpoints.py` [motion_setpoints.py](https://github.dev/ISISComputingGroup/EPICS-motionSetPoints/blob/master/motionSetPointsApp/src/motionSetPoints.cpp)
## How to Test
_verbose instructions for reviewer to test changes
(**Add before making a PR**)_
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia da EPICS-IOC_Test_Framework/EPICS-IOC_Test_Framework/tests/motion_setpoints.py, in particolare da test_GIVEN_XD_WHEN_move_motor_THEN_tolerance_checked, e rivedi motionSetPointsApp/src/motionSetPoints.cpp insieme alla pull request #23. Aggiungi un test di sistema che copra una tolleranza del setpoint di movimento fornita tramite una macro, quindi verifica che abbia esito positivo e rilevi la regressione dell’override nel costruttore.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- cpp, python
- Ambito
- testing-qa
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Specificata chiaramente
- Idoneità per principianti
- 45/100