Changeset 87
- Timestamp:
- 08/06/09 10:53:43 (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
doc/TODO (modified) (2 diffs)
-
src/text_printer.erl (modified) (1 diff)
-
src/text_printer_test.erl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/TODO
r81 r87 4 4 ------------ 5 5 6 - text_printer doesn't yet handle file removals.7 6 - fixtures:make_tree doesn't like {file, "a", "a"} in tree. 8 7 … … 15 14 - add a "run once" mode for directory_tester 16 15 - print file(line) for test errors too 16 - remove or print to text =ERROR REPORT==== from tests which 17 voluntarily crash processes 17 18 - detect -include dependencies and recompile all when .hrl changes 18 19 - run tests in parallel -
trunk/src/text_printer.erl
r77 r87 11 11 wait (Device) -> 12 12 receive 13 {_, compiler, {Total, Done, _}} ->13 {_, compiler, {Total, Done, _}} when Total > Done -> 14 14 io: put_chars (Device, io_lib: fwrite ("Compiling ~p: ", [Total - Done])), 15 15 compiling (Device); 16 {_, tester, {Total, Done, _}} ->16 {_, tester, {Total, Done, _}} when Total > Done -> 17 17 io: put_chars (Device, io_lib: fwrite ("Testing ~p: ", [Total - Done])), 18 18 testing (Device); -
trunk/src/text_printer_test.erl
r80 r87 7 7 -export ([compile_output/0]). 8 8 -export ([test_output/0]). 9 -export ([file_deletion/0]). 9 10 10 11 compile_output () -> … … 46 47 ok. 47 48 49 file_deletion () -> 50 P = spawn_link (text_printer, init, [self ()]), 51 P ! {self (), compiler, {2, 2, 2}}, 52 timeout = receive_io_request (P), 53 P ! {self (), tester, {1, 0, 0}}, 54 <<"Testing 1: ">> = receive_io_request (P), 55 P ! {self (), tester, {1, 1, 1}}, 56 <<".\n1/1 successfully tested.\n">> = receive_io_request (P), 57 ok. 58 48 59 warning () -> 49 60 {"/dir/file.erl", [{12, erl_lint, {unused_function,{foo,1}}}]}.
Note: See TracChangeset
for help on using the changeset viewer.
