Dominik Ritter
4972f0b8eb
Improve tests by making use of local variables
6 years ago
Dominik Ritter
17229ddad7
Add tests for general prompt functionality
6 years ago
Dominik Ritter
f6087199f9
Add tests for visual identifier
6 years ago
Dominik Ritter
a8d7cee786
Add tests for joining segments
6 years ago
Dominik Ritter
16e5e14af7
Fix tests on older ZSH versions
6 years ago
Dominik Ritter
4b32b2c0b2
Fix tests
6 years ago
Dominik Ritter
2fa2e7560f
Remove vcs.spec
...
There are now specific tests for git and hg
6 years ago
Dominik Ritter
7bfa471e41
Fix tests for dir segment on OSX
6 years ago
Dominik Ritter
cf353f5660
Add tests for color overriding
6 years ago
Dominik Ritter
7a7b4ee13a
Merge remote-tracking branch 'ben/master' into add_tests
6 years ago
Dominik Ritter
a5d9227fcb
Add tests for vi_mode segment
6 years ago
Dominik Ritter
d13410d38c
Fix tests for nvm segment
6 years ago
Dominik Ritter
aa5e9ccc3b
Add tests for vcs (hg) segment
6 years ago
Dominik Ritter
ad0c9a6802
Add tests for vcs (git) segment
6 years ago
Dominik Ritter
0d4004ef19
Add tests for todo segment
6 years ago
Dominik Ritter
84f327bd60
Add tests for symfony_version segment
6 years ago
Dominik Ritter
78e03a5fe6
Add tests for swift segment
6 years ago
Dominik Ritter
af31b2de9b
Add tests for swap segment
6 years ago
Dominik Ritter
e51faa0af1
Add tests for ssh segment
6 years ago
Dominik Ritter
cc31a05c52
Add test for ram segment
6 years ago
Dominik Ritter
1e71d452e1
Add tests for public_ip segment
6 years ago
Dominik Ritter
e95f84a55d
Add tests for php_version segment
6 years ago
Dominik Ritter
084f992fab
Add tests for nvm segment
6 years ago
Dominik Ritter
44ec267dfb
Add tests for nodeenv segment
6 years ago
Dominik Ritter
85cc62b72b
Add tests for node_version segment
6 years ago
Dominik Ritter
2efbd7e188
Add tests for load segment
6 years ago
Dominik Ritter
1cf68e418c
Add tests for ip segment
6 years ago
Dominik Ritter
a757607476
Add tests for disk_usage segment
6 years ago
Dominik Ritter
edfd4732f2
Add tests for detect_virt segment
6 years ago
Dominik Ritter
829c7ceaae
Add tests for custom segment
6 years ago
Dominik Ritter
743ddc1253
Add tests for context segment
6 years ago
Dominik Ritter
d9b3edf0e8
Fix go_version test
6 years ago
Dominik Ritter
802af322ff
Add tests for battery segment
...
Additionally
- Add a fourth parameter to prompt_battery for better testability. This
parameter is the root prefix, so we can use our own test batteries.
6 years ago
Dominik Ritter
74a3d2d6e2
Add tests for background_jobs segment
6 years ago
Dominik Ritter
8c44fa68a2
Add tests for aws_eb_env segment
6 years ago
Dominik Ritter
0e4e9e4256
Add tests for anaconda segment
6 years ago
Dominik Ritter
b996ca911e
Output running test
6 years ago
Dominik Ritter
21f2d1a377
Test all *.spec files on travis
6 years ago
Brandon Clothier
48b264f564
Fix error in laravel_version when artisan is not present
6 years ago
Dominik Ritter
d502d05f08
Add tests for status segment
6 years ago
Dominik Ritter
8c0df73d81
Fix tests
6 years ago
Dominik Ritter
dc21b97335
Fix travis build
7 years ago
Dominik Ritter
0257159e1e
Add tests for laravel version segment to travis
7 years ago
Dominik Ritter
d9d9fb9b6b
Merge remote-tracking branch 'ytang/fix-icons-cut-off' into staging_065
...
Conflicts were:
- test/segments/command_execution_time.spec and
test/segments/go_version.spec: All conflicts come from renaming color
names on next (#703 ) and adding a whitespace to the Visual Identifier
(#854 ) on master.
7 years ago
Dominik Ritter
40219759bb
Merge branch 'fix_rprompt_newline' into staging_065
7 years ago
Dominik Ritter
d3500625ca
Merge remote-tracking branch 'TheDan64/master' into staging_065
...
Conflicts were:
- test/segments/rust_version.spec and powerlevel9k.zsh-theme. #826
removes grep from parsing the rust version on next; #703 changes color
names.
7 years ago
Dominik Ritter
e763fa14b0
Merge remote-tracking branch 'chhschou/master' into staging_065
...
Conflicts were:
- powerlevel9k.zsh-theme and test/segments/rust_version.spec:
rust_version Segment changed (#641 ) on master and colors got
names (#703 ) on next.
7 years ago
Dominik Ritter
154e923033
Merge remote-tracking branch 'floor114/next' into staging_065
7 years ago
Dominik Ritter
55473c450a
Merge branch 'master' into staging_065
...
Conflicts were:
- README.md: Two commits targeted the brightness table. #781 from
14. April 2018 on master and #684 from 05. December 2017 on next.
- powerlevel9k.zsh-theme: Two commits targeted the rbenv segment. Both
achieve the same thing: To show the Ruby version number always. #795 on
next from 14. April 2018 and #610 on master from 28. September 2017. I
went with #795 here as this - although being newer - is the one on
master, and that should be more stable.
7 years ago
Yang Tang
5e0b924346
Update unit tests for fixing icons cut off
7 years ago
Dominik Ritter
37cbc9a02d
Fix RPROMPT placement
...
This fixes #841
7 years ago
Dominik Ritter
27bd1cd65d
Fix test for rust segment
7 years ago
Daniel Kolsoi
9b0e0c786a
Removed 'Rust' text from test; Silenced missing rustc warning
7 years ago
Taras Shpachenko
111d152d48
Add vcs branch name truncating.
7 years ago
Dominik Ritter
83ad5b598e
Add test for wrong truncation if switching back to home folder
...
This happens if a user switches from a subdirectory of $HOME
back to the home folder and truncation strategy is "truncate
folders from left". Then the folder is displayed as .../~
PR: #773
7 years ago
Christo Kotze
75a763f901
Updated test for POWERLEVEL9K_DIR_PATH_ABSOLUTE
7 years ago
Christo Kotze
ddcdad77a7
Added new variable POWERLEVEL9K_DIR_PATH_ABSOLUTE
...
If user sets POWERLEVEL9K_DIR_PATH_ABSOLUTE to true, uses absolute paths
instead of home folder abbreviation, e.g. /Users/chris/... instead of
~/...
7 years ago
Christo Kotze
3674af1cd9
Updated dir.spec test for first_and_last
7 years ago
Christo Kotze
08432bf70c
Added truncate_to_first_and_last strategy
...
Truncate middle directories from the path. How many directories will be
untouched is controlled by POWERLEVEL9K_SHORTER_DIR_LENGTH.
7 years ago
Christo Kotze
1abb519f59
Updated dir.spec tests
7 years ago
Christo Kotze
1e29203563
Removed final SEDs and more comments
7 years ago
Christo Kotze
441fb277d9
Comments, trunc_to_last, trunc_absolute
...
Added comments throughout the code
Added `truncate_to_last` - displays only the current folder
Added `truncate_absolute` - displays only the last
POWERLEVEL9K_SHORTER_DIR_LENGTH characters - see #736
7 years ago
Christo Kotze
4fc4d15703
Added tests for DIR_PATH_SEPARATOR_FOREGROUND
7 years ago
Christo Kotze
276bc9017c
Updated testBoldRootSubsubdirWorks()
...
Forgot to initialize the bolding variable
7 years ago
Christo Kotze
dba80dbee9
Added tests for other folder highlighing
7 years ago
Christo Kotze
1e54872873
Added test for Home folder highlighting
7 years ago
Christo Kotze
b6f20d1032
Updating Travis tests for bold dir
7 years ago
Christo Kotze
69e55a30b3
Updated tests for resetting bold
...
Updated tests to include the `%b%K{blue}%F{black}` or similar.
TODO: Still have to create a test for a bolded last segment
7 years ago
Charles Peterson
6bbff45bce
orange stuff -- 208
7 years ago
Ben Hilburn
3d79ca1adc
Merge pull request #684 from Artistan/color_names
...
Use color names, plus fixes
7 years ago
Charles Peterson
264897a426
color names and fixes
...
- fix for packageName truncated by POWERLEVEL9K_DIR_OMIT_FIRST_CHARACTER
- processing the pwd/HOME replacement ONCE.
- fix tests for named colors
- use color names by default to allow dark/light themes to adjust colors based on names
7 years ago
Derek Bassett
1c2774f592
Fix to unit tests. Also removed unneeded extra call to kubectl.
7 years ago
Ben Hilburn
834b6735fa
Fixing `vcs.spec` tests after adding space.
7 years ago
Chris Chou
5657fe6ac7
#632 : Indicate `Rust` or `(rust)` for rust_version segment only if icon is unavailable
7 years ago
Ben Hilburn
9f4faf7f21
Merge pull request #596 from eumiro/truncate_to_unique
...
Add TRUNCATE_TO_UNIQUE shortening dir strategy
7 years ago
Ben Hilburn
02332d5962
Merge branch 'master' into next
7 years ago
Miroslav Šedivý
73a9ee7c87
add TRUNCATE_TO_UNIQUE shortening dir strategy
...
This creates the shortest unique path elements that can be unambiguously expanded to the original path.
7 years ago
Ben Hilburn
c69d45cdcc
Merge pull request #569 from docwhat/pr/home-folder-abbr-test
...
Added tests and replaced a sed call
7 years ago
Christian Höltje
8626d07d60
Merge remote-tracking branch 'origin/master' into pr/merge-master
7 years ago
Christian Höltje
0fded47ab5
Added test for POWERLEVEL9K_HOME_FOLDER_ABBREVIATION
7 years ago
Dominik Ritter
a234636982
Fix empty delimiter
...
Even if the delimiter is empty, the min length should be 1.
This fixes #558
7 years ago
Jason Hutchinson
d2ecb38d60
add tests
8 years ago
Jason Hutchinson
f81ecc11f6
set GO_ICON manually in test
8 years ago
Jason Hutchinson
a6887eb165
update test
8 years ago
Jason Hutchinson
55cf15ac41
test that go_segment prints nothing if GOPATH is not set
8 years ago
Jason Hutchinson
0519384d57
test that go_segment prints nothing if GOPATH is set but is not a subset of PWD
8 years ago
Jason Hutchinson
ac3307400d
update go mock to allow for both version and env sub-commands
8 years ago
Jason Hutchinson
192d634e08
ensure go_version segment prints if PWD is subset of non-empty GOPATH
8 years ago
Dominik Ritter
56af9bb3c3
Fix tests on TravisCI
...
TravisCI runs ubuntu 14.04 which has ZSH 5.0.2 on it.
8 years ago
Dominik Ritter
5b266c7a13
Add tests to ensure all icon keys are set in all modes
...
This tests do compare icons from all modes (except for flat and
compatible) with all other modes.
8 years ago
Dominik Ritter
41d92371ae
Add tests for setting the right locale in icons.zsh
8 years ago
Dominik Ritter
44eaa0ef33
Add tests for `truncate_with_package_name` strategy of dir segment
...
This is a backport from #344
8 years ago
Ben Hilburn
2f387376aa
unittest: fixing space after branch indicator
8 years ago
Dominik Ritter
875dec5dae
Merge branch 'next' into execution_time
8 years ago
Dominik Ritter
a202537dd7
Refactor `command_execution_time` segment
...
- Change internal precision to nanoseconds
- Let the user decide about desired precision
- Add tests
8 years ago
Ben Hilburn
36d74f34c2
Merge branch 'next' into dir_first_character
8 years ago
Dominik Ritter
edb51fcba3
Add tests for `command_execution_time` segment
8 years ago
Dominik Ritter
6e1259ee99
Remove unnecessary variable from tests
8 years ago
Dominik Ritter
8e99944797
Add test for truncate_with_folder_marker truncation strategy
8 years ago
Dominik Ritter
b6e55c189e
Add tests for omitting first character in `dir` segment
8 years ago