Commit graph

24 commits

Author SHA1 Message Date
James Dinsdale fab582c403 Add tests for assertion false-positives with empty values 2018-01-04 23:32:33 +00:00
James Dinsdale 83103bdbd0 Add contains and does_not_contain assertion methods 2017-07-12 12:49:19 +01:00
James Dinsdale 31efe8bffa Rename tests with incorrect extension 2017-07-12 12:49:19 +01:00
Michael Aquilina a37ecdb1ba Allow optional space in shebang 2017-07-12 12:49:19 +01:00
James Dinsdale 598f46e22c Add new integer assertion methods
* `is_positive`
* `is_negative`
* `is_greater_than`
* `is_less_than`
2017-07-10 19:12:14 +01:00
James Dinsdale 6f297fbcc7 Add new pass, fail and error helper methods 2017-07-10 19:12:14 +01:00
James Dinsdale fff5f15b1b Rename substring tests for consistency 2017-07-10 19:12:14 +01:00
Michael Aquilina 0e6eaa9519 Add substring assertion functions (#64)
* Add is_substring_of assert function

* Add is_not_substring_of
2017-07-10 19:12:14 +01:00
James Dinsdale 09ea30047f
Ensure @teardown function is run when a test fails or errors 2017-03-01 20:33:45 +00:00
James Dinsdale 0a0b6df025
Do a safer test against the error message for a missing command
Stops tests from failing just because the line number changes
2017-02-25 11:25:27 +00:00
James Dinsdale 8459ca1b58
Add is_writable and is_executable assertion methods 2017-02-22 22:10:59 +00:00
James Dinsdale 9f37f2ffeb
Add is_value_in and is_not_value_in assertion methods 2017-02-22 22:10:59 +00:00
James Dinsdale a43bf8b5a9
Add tests for is_key_in and is_not_key_in assertion methods 2017-02-22 22:10:58 +00:00
James Dinsdale 0febd1e4b3
Fix handling of arrays in assertions 2017-01-27 09:40:15 +00:00
James Dinsdale 1761ebb606
Add simple text report output
Enabled with `--output-text` option
2017-01-06 00:22:52 +00:00
James Dinsdale 82772145df
Fix load test 2017-01-05 00:28:26 +00:00
James Dinsdale 2980a139f4
Remove use of (@z) array flag, which is unsupported in ZSH 5.0
Fixes #7
2016-12-21 20:51:20 +00:00
James Dinsdale 4b4d8715f7
Separate assertion tests into their own files 2016-12-21 20:01:54 +00:00
James Dinsdale 1bd646f961
Fix some ZSH 5.0 compatibility issues 2016-12-21 19:52:59 +00:00
James Dinsdale a6fdf61c91
Add some additional tests 2016-11-28 21:56:37 +00:00
James Dinsdale 20e567edc7 Remove unnecessary quotes from assertions 2016-09-27 23:58:19 +01:00
James Dinsdale 7106491688 Add exists, is_file, is_dir, is_link and is_readable assertion methods
Also includes documentation and tests for the above
2016-09-26 22:41:43 +01:00
James Dinsdale 58feaa993e Prevent need for trailing semicolons within tests
Fixes an issue with the way test code is echoed into eval, meaning that
newlines are passed through correctly, so a trailing semicolon is no
longer needed at the end of each line.

Also means that comments within test body no longer cause a fatal error.
2016-09-26 21:59:28 +01:00
James Dinsdale ea4b02497c First commit 2016-09-05 22:10:10 +01:00