[TIMOB-12252] CodeProcessor: Rework unit tests to be more efficient
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-02-24T03:56:54.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | Release 3.1.0, 2013 Sprint 04 JS, 2013 Sprint 04 |
Components | Code Processor |
Labels | n/a |
Reporter | Bryan Hughes |
Assignee | Praveen Innamuri |
Created | 2013-01-09T13:25:44.000+0000 |
Updated | 2017-03-09T00:26:52.000+0000 |
Description
Unit tests are structured such that a library is evaluated along with the test code. The library is around 2k lines of code, but the tests cases are usually only a dozen. Re-evaluating the library per-test causes everything to run extremely slowly. It should be possible to run the library only once and then run each test separately. This may require some new functionality in the core engine to support contexts properly.
Closing ticket as fixed.