Have you ever tried lux tool for testing?

lux is a test automation framework with Expect style execution of commands.

A good tutorial/introduce is this talk about Lux, presented at the Erlang User Conference 2019.

lux is very useful for creating tests that exercise interfaces, commands, APIs, etc.

The main motivation for this post is that I think more people (outside context where lux has been created) should be aware about lux and its features. lux is a very good tool to add into our skill set.

The main source of documentation is its own documentation page, there is a short tutorial here. And more examples lux/examples at master · hawk/lux · GitHub.

Outside lux project, I’ve found two projects using lux for testing:

And my own try using lux for systemic testing:

Some random ideas to improve lux usage would be:

Thanks

4 Likes

Here is another project using lux:

Also, Lux is heavily used withing Cisco for testing of its NSO product.

–T

1 Like

I can add that if you use rebar3 to bring in lux then don’t forget to:

cd ./_build/default/lib/lux
autoconf
./configure
make

in order to build the runpty binary that lux is using