I spent way more time last week than I would have liked to getting a few lines of painless script to work (not quite as painless as advertised). A lot of my pain came from having to relaunch our integration tests repeatedly. One thing I was wondering about is how to unit test this stuff.
On paper this stuff is perfect for unit testing: limited set of parameters and the output
is a double. Except, I'd need some way of running the script and getting my hands on the output and I haven't really found any.
So, Is there any way of doing this with a proper unit test that does not involve depending on a gazillion ES internals or having to write a full blown integration test against a running cluster?
Ideally, painless would be available as a separate dependency that people can just pull in and use in their unit tests or wherever.