Commit 446d663
committed
Fix #204: High memory usage of Metamorph tests
The metamorph test framework loads all test definitions into memory
prior to running the tests. For each test definition the Metamorph
script under test is instantiated. If there are many test cases this can
consume a lot of memory (in particular if the script is large).
This is changed so that the Metamorph module is created in the `run`
function of `TestCase` and stored in a local variable.1 parent 3a509d9 commit 446d663
1 file changed
+4
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | 58 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | 59 | | |
65 | 60 | | |
66 | | - | |
67 | | - | |
68 | 61 | | |
69 | 62 | | |
70 | 63 | | |
| |||
76 | 69 | | |
77 | 70 | | |
78 | 71 | | |
79 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
80 | 75 | | |
| 76 | + | |
81 | 77 | | |
82 | 78 | | |
83 | 79 | | |
| |||
0 commit comments