Commit Graph

25 Commits

Author SHA1 Message Date
a888efe6d0 Update __go_to_session layout helper test 2014-12-02 22:22:09 +00:00
fe3beeac29 Attempt to avoid timing issue which sometimes causes test to fail 2014-08-29 22:46:41 +01:00
ef0f25591c Set $window var based on currently active window
Previously $window was only set by the new_window() helper when it was
passed a name argument. This caused weird behavior cause if it was
called without a name it would simply attempt to recreate the same
window and fail. That was until @blueyed's fix in 2249cf8.

However, the $window var still wasn't being set correctly, leaving
split_v(), split_h() and other helpers to operate on the wrong
window. This is no longer an issue as $window is always set to the index
of the currently active window at the end of new_window() and
select_window().
2014-08-29 22:29:03 +01:00
0ae0bc84e3 Add __get_current_window_index internal helper function 2014-08-29 22:28:25 +01:00
77ccb5d532 Clean up test a bit 2014-07-21 16:13:16 +01:00
d8b8dff61f Add tests for new_window layout helper 2014-06-04 00:36:33 +01:00
d47838ca1f Add and use test helpers to create/kill test-specific tmux sessions 2014-06-04 00:07:23 +01:00
87d767d1c5 Fix issue with PATH in test environment 2014-06-03 23:19:34 +01:00
1b0b3b8ba8 Add tests for __get_first_window_index layout helper 2014-06-03 20:31:41 +01:00
94b9559bfa Use full tmux command names rather than aliases 2014-06-03 20:31:19 +01:00
636e92b118 Add tests for __go_to_window_or_session_path layout helper 2014-06-03 20:01:47 +01:00
7e63149c26 Add tests for tmux layout helper 2014-05-26 20:20:39 +01:00
36add22637 Use test-runner.sh instead of homegrown test.sh 2014-05-26 13:52:55 +01:00
3aa151b865 Add tests for __go_to_session layout helper 2014-05-26 11:35:10 +01:00
f977850ea9 Add tests for __expand_path layout helper 2014-05-26 11:34:53 +01:00
47219d2d40 Improve test environment for individual test files 2014-05-26 11:28:28 +01:00
a875b63033 Attempt to fix test failing with Tmux 1.6 and 1.7 2014-05-25 02:38:05 +01:00
5602bf650e Add basic tests for tmuxifier-tmux 2014-05-25 01:24:30 +01:00
54f6f890bb Add tests for lib/util.sh 2014-05-25 00:27:09 +01:00
e5ffdc6f16 A few further tweaks to how path handling in tests 2014-05-25 00:27:09 +01:00
1fb80660b8 Add tests for lib/runtime.sh 2014-05-25 00:27:09 +01:00
a700770757 Fix path related test setup issue 2014-05-25 00:27:09 +01:00
c927126cb3 Improve global test setup in test-helper.sh 2014-05-25 00:27:08 +01:00
279e68f7c5 Add tests for lib/env.sh 2014-05-25 00:27:08 +01:00
1bf087faa3 Basic setup for tests
Based on the test setup of stub.sh: https://github.com/jimeh/stub.sh
2014-05-25 00:27:08 +01:00