Commit Graph

32 Commits (ef0b5ce50fdd4be764d189723e6b51088fadc286)

Author SHA1 Message Date
Jason Hutchinson d2ecb38d60 add tests
Jason Hutchinson 55cf15ac41 test that go_segment prints nothing if GOPATH is not set
Jason Hutchinson 0519384d57 test that go_segment prints nothing if GOPATH is set but is not a subset of PWD
Jason Hutchinson ac3307400d update go mock to allow for both version and env sub-commands
Jason Hutchinson 192d634e08 ensure go_version segment prints if PWD is subset of non-empty GOPATH
Dominik Ritter 56af9bb3c3 Fix tests on TravisCI
TravisCI runs ubuntu 14.04 which has ZSH 5.0.2 on it.
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.
Dominik Ritter 41d92371ae Add tests for setting the right locale in icons.zsh
Dominik Ritter 44eaa0ef33 Add tests for `truncate_with_package_name` strategy of dir segment
This is a backport from 
Ben Hilburn 2f387376aa unittest: fixing space after branch indicator
Dominik Ritter 875dec5dae Merge branch 'next' into execution_time
Dominik Ritter a202537dd7 Refactor `command_execution_time` segment
- Change internal precision to nanoseconds
- Let the user decide about desired precision
- Add tests
Ben Hilburn 36d74f34c2 Merge branch 'next' into dir_first_character
Dominik Ritter edb51fcba3 Add tests for `command_execution_time` segment
Dominik Ritter 6e1259ee99 Remove unnecessary variable from tests
Dominik Ritter 8e99944797 Add test for truncate_with_folder_marker truncation strategy
Dominik Ritter b6e55c189e Add tests for omitting first character in `dir` segment
Dominik Ritter 3d451499aa Fix tests
Arav Singhal 8d7a4e462a Update test for required behavior
Dominik Ritter fa33902c00 Fix test
Dominik Ritter 3591099789 Add tests for dynamic color overriding of vcs segment
Dominik Ritter 3407494d7d Add tests for `go_version`
Dominik Ritter 490bafc868 Add tests for `rust_version`
Dominik Ritter 7cf46711cc Add tests for the dir segment
Dominik Ritter 4844bbbaea Avoid color warning on travis
Dominik Ritter 9c0b8b9e42 Add test for overwriting icons
Dominik Ritter a3eaf4a4b0 Improve isolation of tests
Dominik Ritter a75b0c17d2 Add tests for visual identifiers
Dominik Ritter 8a386ba1b3 Add tests for functions/colors.zsh
Dominik Ritter c0c611c21d Add tests for functions/utilities.zsh
In particular: `defined`, `set_default`, `getRelevantItem` and
`segmentShouldBeJoined`
Dominik Ritter ca6cbaa0b6 Add unit tests for printSizeHumanReadable
Dominik Ritter 42c39c8922 Add Unit-Tests
Add unittests via shunit2 (https://github.com/kward/shunit2),
that integrate with travis-ci.org.