Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-12252] CodeProcessor: Rework unit tests to be more efficient

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-02-24T03:56:54.000+0000
Affected Version/sRelease 3.0.0
Fix Version/sRelease 3.1.0, 2013 Sprint 04 JS, 2013 Sprint 04
ComponentsCode Processor
Labelsn/a
ReporterBryan Hughes
AssigneePraveen Innamuri
Created2013-01-09T13:25:44.000+0000
Updated2017-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.

Comments

  1. Lee Morris 2017-03-09

    Closing ticket as fixed.

JSON Source