Details
-
Type:
Improvement
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: ap_verify
-
Labels:None
-
Story Points:4
-
Epic Link:
-
Sprint:AP S18-6, AP F18-1
-
Team:Alert Production
Description
As of DM-13524, ap_verify's full set of unit tests takes 16 seconds to run. While this running time is still acceptable, adding new tests will likely push the running time to the point where developers are discouraged from running the tests.
This ticket should try to reduce the unit tests' running time by a factor of at least 3. Further speedup is likely impossible because many of the tests must involve file I/O.
Hi John Parejko, as our unit testing expert can you take a more detailed look at this ticket? I ended up not using unittest.mock anywhere because of various complications (it's design seems more oriented towards white-box testing, tests of ingestion must be expressed in terms of state changes rather than function behavior, etc.).