Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 44 lines (35 sloc) 1.865 kb
cf99aa8 @mikegerwitz [#25] Added README.todo
authored
1 TODO
2 ====
3 Todo tasks can be found in the bug tracker at http://easejs.org/bugs. Below is
4 a list of the glaring issues that may be found at first glance.
5
6
7 COUPLING
8 --------
9 During the beginning of the project, all modules were represented as object
10 literals, which is similar to the concept of a Singleton. This satisfied the
11 needs of the early project, but it soon evolved far past its original design and
12 resulted in a tightly coupled system that was difficult to maintain, add to and
13 test. Refactoring into prototypes is ongoing.
14
15
16 UNIT TESTS
17 ----------
18 The unit tests are currently split between a few different formats, depending on
19 filename and test construction.
20
21 - Tests created during the beginning of the project have a test-* prefix. These
22 are more likely to represent integration or system tests rather than unit
23 tests. They should be converted to files with a *Test.js suffix and be
24 refactored to test only the unit.
25 - Newer tests use require( 'common' ).testCase() in order to run the tests. The
26 older format separates tests with self-executing functions. The former should
27 be used.
28
29 When running the tests, you will notice that the older tests output nothing
30 whereas the newer tests output the status of each test in addition to a summary
31 at the end of the test case. Ultimately, a test runner will defer final
32 statistics until the end of all running tests. The Makefile will need to be
33 modified. This sacrifices the ability to use -jN with the tests, but will
34 ultimately speed up the tests by eliminating the need to run a separate process
35 for each test case (the performance benefit can be seen by running the tests in
36 the browser).
37
38
39 PERFORMANCE TESTS
40 -----------------
41 Performance tests need to be written for every aspect of the system. They will
42 ultimately be graphed to show the relative performance across versions of the
43 software.
Something went wrong with that request. Please try again.