aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/interactive.expect.rc
Commit message (Collapse)AuthorAge
* don't allow f-k-r to run if stdin/stdout not a ttyGravatar Kurtis Rader2016-06-26
| | | | | | | | Another developer noticed that redirecting stdin of `fish_key_reader` results in weird behavior. Which is not at all surprising. So add checks to ensure stdin and stdout are attached to a tty. Add some rudimentary unit tests for this program.
* Tests: Add fish_mode_prompt to except_promptGravatar Fabian Homborg2016-04-26
| | | | | Without this, the interactive tests fail when they receive a mode_prompt in vi-mode.
* make testing on local servers hermeticGravatar Kurtis Rader2016-02-25
| | | | | | | | | | | | | | | | | | I noticed while fixing issue #2702 that the fish program being tested was sourcing config.fish files outside of the current build. This also happens when Travis CI runs the tests but isn't an issue there because of how Travis is configured to execute the tests. I also noticed that running `make test` was polluting my personal fish history; which will become a bigger problem if and when the fishd universal var file is moved from $XDG_CONFIG_HOME to $XDG_DATA_HOME. This change makes it possible for an individual to run the tests on their local machine secure in the knowledge that only the config.fish and related files from their git repository will be used and doing so won't pollute their personal fish history. Resolves #469
* make bind unit tests more robust on travis-ciGravatar Kurtis Rader2016-01-17
| | | | | | | My previous commit failed in the travis-ci environment despite passing on my local computer. This appears to be due to expect timing out looking for the expected input. See if increasing the expect timeout slightly fixes the problem.
* tests: try longer timeout in case setting fish_key_bindings is taking too longGravatar David Adam2015-10-30
|
* Try to fix the Travis test failuresGravatar Kevin Ballard2014-09-23
| | | | | | | It seems expect prioritizes the first pattern in the list, instead of the pattern that matches earliest in the buffer. That seems pretty stupid, but let's try moving the prompt pattern to the end and see if that fixes the Travis failures.
* Add extra logging for interactive test failuresGravatar Kevin Ballard2014-09-21
|
* Tweak interactive debug outputGravatar Kevin Ballard2014-09-19
|
* Reset fish_bind_mode when changing fish_key_bindingsGravatar Kevin Ballard2014-09-18
| | | | | | | Also avoid resetting bindings if fish_key_bindings is "modified" without actually changing. Fixes #1638.
* Add a test harness for interactive behaviorGravatar Kevin Ballard2014-09-07
Add a test harness that uses `expect` to drive Fish to test interactive behavior. Include some tests for `read`.