18 Sep
2017
18 Sep
'17
10:55 a.m.
On Mon, 18 Sep 2017 12:16:35 +0200
Victor Stinner
Antoine:
* skip a test if it allocates too much memory, command line argument to specify how many memory a test is allowed to allocate (ex: --memlimit=2G for 2 GB of memory)
That would be suitable for a plugin if unittest had a plugin architecture, but not as a core functionality IMO.
My hidden question is more why unittest doesn't already have a plugin system, whereas there are tons on projects based on unittest extending its features like pytest, nose, testtools, etc.
Michael Foord or Robert Collins may be able to answer that question :-) Though I suspect the answer has mainly to do with lack of time and the hurdles of backwards compatibility. Regards Antoine.