Summary:
This is just a little script that will run a search and print out the timings
for each of the searches that ivy will preform.
For example running
```
nvim -l ./scripts/integration.lua /path/to/repo test 2> /dev/null
```
will output
```
t 0.074737
te 0.016494
tes 0.018898
test 0.017214
```
Test Plan:
Does not really require testing, this is a little helper script for
development. If it does not work on another machine then we can cross that
bridge when we come to it.
Reviewers: AdeAttwood
Reviewed By: AdeAttwood
Differential Revision: https://ph.baln.co.uk/D2
Summary:
Right now we are using a custom test runner. This move the suite over to
busted, this will make things much more maintainable going forward. The two
main reasons for moving are.
1) The custom runner as some bugs, when running assertions we are not getting
the correct results.
2) All of the busted mocking features. We can use spy and mock, this will allow
us to remove the nvim_mock. This file is not amazing and confuses the lsp
often.
Test Plan:
CI
This will quickly benchmark your current commit against a commit you
pass in. This will output the percentage difference so you can quickly
get an idea in the performance changes in your current work
Now you can use `before` `before_each` `after` and `after_each`. Each of
the hooks will run in the context of the test file.
`before` This will run once before all the tests
`before_each` This will run before each of the test functions
`after` Will run once after all the test functions
`after_each` Will run after each one of the test functions
Multiple functions can be defined for each hook by calling the
respective function again.