Daniel Shahaf
d9a7963970
driver: Follow-up to grandparent: Have all test suite entry points declare the mock $region_highlight.
tests/generate.zsh already does this.
4 年前
Daniel Shahaf
343ec1061f
'make perf': Show only a cumulative datum per highligher, rather than per test file.
The overall per-highlighter duration should be less prone to random
noise than the multitude of per-test-file figures.
4 年前
Daniel Shahaf
9e9885253a
test harness: Output the time information to the same place the test name was printed to.
4 年前
Matthew Martin
dddea5d5dd
tests: Set harness variables local
5 年前
Daniel Shahaf
a868b6942e
test harness: Actually test the new code.
Currently, without zsh/zle loaded, the tests silently fall back to the
5.2-and-earlier codepath; see:
.
https://github.com/zsh-users/zsh-syntax-highlighting/pull/356#issuecomment-243651251
8 年前
Matthew Martin
d3678ec7a8
tests: Remove unused_highlight
8 年前
Daniel Shahaf
30d8f92df2
test harness: Properly quote error message interpolations.
No functional change, except that error messages are now more readable.
8 年前
Daniel Shahaf
e60737d320
'make perf': Unbreak by porting over 'make test' harness changes.
In particular, tests were relying on the harness to provide a sandbox working
directory, but the perf harness wasn't providing that.
8 年前
Julien Nicoulaud
0772ddd346
Big refactoring.
* Don't override user defined styles
* Better modularisation of highlighters
* Allow to define which highlighters are activated
* Allow to define the order in which they are defined
* Minor performance optimizations
* Fixed some variables leak
* Improve documentation
* Brackets highlighter: use ZSH_HIGHLIGHT_STYLES instead of a specific array
13 年前
Julien Nicoulaud
ea792cbf87
Add a mechanism for testing the correctness of the highlighting.
Feel free to add more test data !
Signed-off-by: Julien Nicoulaud <julien.nicoulaud@gmail.com>
13 年前