Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: log, meas_algorithms, meas_astrom
-
Labels:None
-
Story Points:4
-
Epic Link:
-
Team:SQuaRE
Description
When sconsUtils is migrated to use nose or py.test some test scripts will need to be modified because test discovery will be slightly different and the namespace of test execution will change.
Two things to consider:
- People would still like the option of running a test as python tests/testMe.py.
- We have to work out how to run the memory test case.
Attachments
Issue Links
- is triggering
-
DM-3904 meas_astrom update for pytest and SIP test can fail if tests run all in one process
- Done
-
DM-5561 Write tech note on modifications required to use py.test framework
- Done
- relates to
-
DM-7207 Modify afw tests to support pytest
- Done
-
DM-7231 Modify cat tests to support py.test
- Done
-
DM-7270 Cleanup utils tests to after pytest conversion
- Done
-
DM-5164 Tests in daf_persistence should skip properly
- Done
-
DM-609 afw unit tests not built unless afwdata available
- Done
You raise good points about the parent class being run and about skipping tests that may not need to be skipped. It would be worth looking at the latter – if not on this ticket, then filing a new ticket.
However, I was merely suggesting that the string "afwdata isn't set up" would be better than "Skipping <foo> test case as afwdata isn't set up" because the longer version is subject to copy/paste errors which could result in lying about what is being skipped.