72 Commits

Author SHA1 Message Date
Thibault Jouan
616b14eae2 Register layout event hooks 2015-04-12 21:04:29 +00:00
Thibault Jouan
a848e6b936 Instantiate and assign a Layout in the Runner 2015-04-12 21:04:29 +00:00
Thibault Jouan
b65e989c38 Accept -l LAYOUT CLI option to set the layout 2015-04-12 21:04:29 +00:00
Thibault Jouan
0ce73c2e2f Improve error reporting in cucumber helpers
Indent stdout and stderr in the error generated by uhwm_wait_output
helper.
2015-04-12 21:01:54 +00:00
Thibault Jouan
c9e6d1807b Fix X display handling in rspec test suite
* Hide any available X display from test suite context;
* Ensure the manager never connect or block.
2015-04-10 10:16:30 +00:00
Thibault Jouan
59e9562279 Rename :display, :* events as :* 2015-04-10 07:53:45 +00:00
Thibault Jouan
325801a037 Fix Runner specs on manager event hooks 2015-04-10 07:15:08 +00:00
Thibault Jouan
f9fe27d36b Remove unneeded contexts in runner specs 2015-04-10 07:15:08 +00:00
Thibault Jouan
791c159d7a Implement ruby feature loading (-r CLI option) 2015-04-10 07:14:41 +00:00
Thibault Jouan
1467425407 Improve cucumber output steps 2015-04-10 07:14:41 +00:00
Thibault Jouan
d965fb2afd Handle Manager logging with events Dispatcher 2015-04-09 23:31:56 +00:00
Thibault Jouan
7b9854b499 Support event hook arguments in Dispatcher 2015-04-09 23:31:13 +00:00
Thibault Jouan
520a0c87c9 Implement Env#log_debug 2015-04-09 23:11:52 +00:00
Thibault Jouan
7636e646f2 Fix coding standards (indent align in Env) 2015-04-09 23:11:24 +00:00
Thibault Jouan
6f38ad2990 Merge branch 'debug-option' 2015-04-09 22:22:47 +00:00
Thibault Jouan
464b75841b Implement debug mode 2015-04-09 22:22:41 +00:00
Thibault Jouan
69d885b282 Support -d debug option in CLI 2015-04-09 22:22:41 +00:00
Thibault Jouan
7b11dd7b08 Add debug mode in Env 2015-04-09 22:22:41 +00:00
Thibault Jouan
f66d8d24ee Improve reporting in #uhwm_wait_output cucumber helper 2015-04-09 22:22:27 +00:00
Thibault Jouan
1079609cfc Merge branch 'verbose-option' 2015-04-09 21:44:09 +00:00
Thibault Jouan
254efe4f74 Implement verbose mode 2015-04-09 21:43:57 +00:00
Thibault Jouan
404b34acc0 Implement Env#log_logger_level 2015-04-09 21:43:57 +00:00
Thibault Jouan
0d0eac111c Implement verbose status in Env 2015-04-09 21:43:57 +00:00
Thibault Jouan
6de680c443 Ensure uhwm is killed after each cucumber scenario 2015-04-09 21:43:47 +00:00
Thibault Jouan
98bfa6c218 Fix coding standards 2015-04-09 03:51:38 +00:00
Thibault Jouan
0ad00f3b77 Refactor Dispatcher 2015-04-09 03:49:26 +00:00
Thibault Jouan
811354b683 Add basic documentation 2015-04-09 03:27:30 +00:00
Thibault Jouan
309347a8ec Hide linux netstat stderr output on travis CI 2015-04-09 03:23:12 +00:00
Thibault Jouan
366028fa01 Allow X related tests to work on travis CI 2015-04-09 03:23:12 +00:00
Thibault Jouan
4eecc2e32f Configure travis continuous integration service 2015-04-09 03:23:12 +00:00
Thibault Jouan
6f8bb69c92 Force Display test double usage in Runner.run specs
We need to mock Display.new to return a test double with #open
disabled, in order to prevent the manager to initiate real connections
to current display and because we don't want to inject a Display
instance all the way down from Runner to Manager (at least not yet).
2015-04-09 03:23:12 +00:00
Thibault Jouan
199269f046 Fix missing require call for optparse 2015-04-09 01:28:22 +00:00
Thibault Jouan
dc77ba0626 Regroup stdlib require calls in main module 2015-04-09 01:28:05 +00:00
Thibault Jouan
19d37fb6c5 Specify exact uh pre-release version requirement 2015-04-09 01:21:13 +00:00
Thibault Jouan
7896af9485 Merge branch 'events-key_press-quit'
Implement a few basic classes to handle different concerns (Runner,
Manager, Dispatcher) and integrate them together with a hard coded hook
for `mod1+q' key binding, which will initiate program termination.
2015-04-09 00:30:17 +00:00
Thibault Jouan
ceac19b346 Quit on `mod1+q' key binding
* Loop our runner until it is "stopped";
* Use the event dispatcher to stop the runner on `mod1+q' key press;
* Tell the manager to grab the `q' key.
2015-04-09 00:30:13 +00:00
Thibault Jouan
224ae6be5f Implement Runner#run_until 2015-04-09 00:30:13 +00:00
Thibault Jouan
c8f12af987 Implement Manager#handle 2015-04-09 00:30:13 +00:00
Thibault Jouan
498feb809e Instanciate Manager with a mandatory Dispatcher 2015-04-09 00:30:13 +00:00
Thibault Jouan
7becda9f31 Implement Dispatcher#emit 2015-04-09 00:30:13 +00:00
Thibault Jouan
ca8f60365f Ignore /tmp/ from version control 2015-04-09 00:30:13 +00:00
Thibault Jouan
6b0676e547 Accept constructor options in Runner.run factory 2015-04-09 00:30:13 +00:00
Thibault Jouan
7c8b312084 Accept stopped status param in Runner constructor 2015-04-09 00:30:13 +00:00
Thibault Jouan
fd13accaf6 Assign a Dispatcher in new Runner instances 2015-04-09 00:30:13 +00:00
Thibault Jouan
585903240b Implement Manager#handle_pending_events 2015-04-09 00:30:13 +00:00
Thibault Jouan
d3007201cc Accept Display instance in Manager constructor 2015-04-09 00:30:13 +00:00
Thibault Jouan
b354ffcd62 Add stopped status notion in Runner 2015-04-09 00:30:12 +00:00
Thibault Jouan
44a69b75c6 Accept a Manager instance in Runner constructor 2015-04-09 00:30:12 +00:00
Thibault Jouan
b4b4f086d4 Implement Manager#grab_key 2015-04-09 00:30:12 +00:00
Thibault Jouan
84ad217d5b Implement a basic event dispatcher 2015-04-09 00:30:12 +00:00