simonw / datasette-ripgrep

Web interface for searching your code using ripgrep, built as a Datasette plugin
https://ripgrep.datasette.io
Apache License 2.0
72 stars 1 forks source link

Unit tests that exercise ripgrep #5

Closed simonw closed 3 years ago

simonw commented 3 years ago

The tests can skip if the rg executable is not available.

simonw commented 3 years ago

Still not installing:

2020-11-28T04:21:00.6951648Z error: This revision of snap "ripgrep" was published using classic confinement
2020-11-28T04:21:00.6953343Z        and thus may perform arbitrary system changes outside of the security
2020-11-28T04:21:00.6954491Z        sandbox that snaps are usually confined to, which may put your system at
2020-11-28T04:21:00.6955269Z        risk.
2020-11-28T04:21:00.6955893Z 
2020-11-28T04:21:00.6956664Z        If you understand and want to proceed repeat the command including
2020-11-28T04:21:00.6958028Z        --classic.
simonw commented 3 years ago

I'm worried that the tests may be flaky because the order that the results are returned by ripgrep is undefined.