Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find an alternative to expect that supports UTF-8 and runs on CI #28

Open
apainintheneck opened this issue Mar 17, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@apainintheneck
Copy link
Owner

expect seemed like a good enough way to test that Linenoise completions were working correctly but I ran into two problems with it. First, I couldn't get it working on CI so I had to just make sure to run it locally. That was inconvenient but not that big of a deal. Second, I just found out that the default expect on macOS doesn't support UTF-8 characters by default which means that I can't automatically test new PRs like #27.

Ideally, there'd be a library in Crystal to do this but I'm not aware of any of them. Likely, I'll have to use something written in another language or maybe port something to Crystal. There are definitely a bunch of options out there.

@apainintheneck apainintheneck added the bug Something isn't working label Mar 17, 2024
@apainintheneck
Copy link
Owner Author

Here are some alternatives by language:

None of them provide the exact same interface as expect so the tests themselves will have to be updated anyway. The shell ones are most attractive though I'd have to see how they build on CI. The Python one could maybe work for the same reason. I wonder how hard it would be to port one of the lang-specific libraries to Crystal to get this working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant