This repository has been archived by the owner on Apr 26, 2023. It is now read-only.
/
TODO
70 lines (37 loc) · 2.2 KB
/
TODO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
TODO:
- object compare should be more informative than 'objects dont match'
- specify suite and test number via. command-line to run a specific test
- make tests use promises (already done to a degree, might be good to provide
the q promise library as a helper, similar to jquery)
- HTTP / REST testing
- write a framework for making remoteStorage provider integration test.
- use github.com/jcoglan/remotestorage-oauth to get a token for testing
- provide command-line arguments to control the brevity of the test results.
- testing in the browser
- write tests to tests the Teste library methods directly.
MAYBE:
? indicate in a test that you'd like to keep the env resident for the next
test
COMPLETED:
x move before & afterEach objects to be children of the test object, so each
times it's run it has it's own clean environment.
x run tests from filenames passed as command-line arguments (nilclass)
x move modules to requirejs for interoperabilty on both server and client side
x support for baseClient.on() function (on error or change)
x built in support for remoteStorage module testing, baseClient mocks and schema validation
x make sure tests which have assertFail set to true, fail if they pass.
x support for multipe asserts in the same test with assertAnd() and assertTypeAnd()
x basic support for stub functions
x names no longer used for tests, suite names options, descriptions still required, display output simplified
x to test libraries, we need to patch the libraries to return modules.export if
it's enclosed in a self-executing function.
x you can override timeouts if you know the async call may take a while
x assertFail indicates the test is supposed to fail
x this.assert() to test variables, can also compare objects. this.status()
automatically set based on results.
x async testing works (test isn't complete when it returns, it's complete when
this.result() is set true or false.). using the this.tools.jQuery for async
calls (see tests in suite 'async').
x tools available to tests, this.tools.jQuery, etc.
x suites and tests have their own environments, and shared environments as
well. the 'env' object is passed to the test function as the first parameter.