-
Notifications
You must be signed in to change notification settings - Fork 0
/
TODO
93 lines (65 loc) · 3.29 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
#+TITLE: Notes on arv.autotest
#+AUTHOR: Alexis Roda
#+EMAIL: alexis.roda.villalonga@gmail.com
#+TODO: TODO(@) PAUS(@) DONE(@)
#+TODO: | CANC(@)
* In
** TODO Refactor =TerminalRactor= :enhancement:
Factor in its own method the construction of the stamp.
** TODO Add support for plugins :enhancement:
- a package can declare reporters, event filters etc. using entry
points.
- the user specifies what reporter/filter/... to use in the config
file.
** TODO Add optional 'command' to watches :enhancement:
Use case, if a =test_*.py= file changes run only tests on that file,
otherwise run all tests.
** TODO Seems like throting does not work properly :bug:
Use case:
- rename function with rope's =C-r r=, that afects many modules. Rope
modifies and saves the modules. That takes less than a second.
- autotets runs the tests as many times as modules are modified.
** TODO Weird error :bug:
Running autotest on =detectar_imports.py= raises an error:
- is a toy project, tests are in the same directory a code
- changing the test code raises an error:
#+begin_src text
Traceback (most recent call last):
File "/home/alex/local/bin/autotest", line 9, in <module>
load_entry_point('arv.autotest==0.2.5', 'console_scripts', 'autotest')()
File "/home/alex/pyvenv/eines/lib/python2.7/site-packages/arv/autotest/main.py", line 86, in main
notifier.loop()
File "/home/alex/pyvenv/eines/lib/python2.7/site-packages/pyinotify.py", line 1424, in loop
self.process_events()
File "/home/alex/pyvenv/eines/lib/python2.7/site-packages/pyinotify.py", line 1321, in process_events
self._default_proc_fun(revent)
File "/home/alex/pyvenv/eines/lib/python2.7/site-packages/pyinotify.py", line 960, in __call__
return _ProcessEvent.__call__(self, event)
File "/home/alex/pyvenv/eines/lib/python2.7/site-packages/pyinotify.py", line 680, in __call__
return meth(event)
File "/home/alex/pyvenv/eines/lib/python2.7/site-packages/arv/autotest/main.py", line 49, in process_IN_CLOSE_WRITE
if not self._filter(event):
File "/home/alex/pyvenv/eines/lib/python2.7/site-packages/arv/autotest/event_filters.py", line 149, in filter
if not f(event):
File "/home/alex/pyvenv/eines/lib/python2.7/site-packages/arv/autotest/event_filters.py", line 69, in __call__
return self._is_interesting(event.path, event.name)
File "/home/alex/pyvenv/eines/lib/python2.7/site-packages/arv/autotest/utils.py", line 29, in wrapper
f.__memoize_cache__[args] = f(*args)
File "/home/alex/pyvenv/eines/lib/python2.7/site-packages/arv/autotest/event_filters.py", line 78, in _is_interesting
raise ValueError(path)
ValueError: __pycache__
#+end_src
** TODO Return code and compound commands :annoyance:
In my workflow the test command is something like:
#+begin_src sh
runtests --html-report || browser report.html
#+end_src
The problem is that the exit code of this command is always 0 and no
"Tests failed" message is displayed.
Displaying the report should be managed by a reporter implementing the
'stop' method.
* Done
# Local Variables:
# ispell-local-dictionary: "en"
# mode: org
# End: