# Have you ever tried lux tool for testing?

**URL:** <https://erlangforums.com/t/have-you-ever-tried-lux-tool-for-testing/5099>\
**Category:** Chat / Discussions\
**Tags:** lux\
**Created:** [September 29, 2025, 7:55pm UTC](https://erlangforums.com/t/have-you-ever-tried-lux-tool-for-testing/5099 "2025-09-29T19:55:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joaohf](https://erlangforums.com/user_avatar/erlangforums.com/joaohf/32/427_2.png) [@joaohf](https://erlangforums.com/u/joaohf)\
**Post date:** [September 29, 2025, 7:55pm UTC](https://erlangforums.com/t/have-you-ever-tried-lux-tool-for-testing/5099/1 "2025-09-29T19:55:17Z")

</div>

[lux](https://github.com/hawk/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](https://www.youtube.com/watch?v=Nu15YOpmCKQ).

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](https://github.com/hawk/lux/blob/master/doc/lux.md), there is a [short tutorial here](https://github.com/hawk/lux/blob/master/doc/lux.md#../tutorial/README). And more examples [lux/examples at master · hawk/lux · GitHub](https://github.com/hawk/lux/tree/master/examples).

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

- [enacm/nacm\_nif/test at main · etnt/enacm · GitHub](https://github.com/etnt/enacm/tree/main/nacm_nif/test)
- [rafting/test at main · etnt/rafting · GitHub](https://github.com/etnt/rafting/tree/main/test)

And my own try using lux for systemic testing:

- [meta-erlang/lib/oeqa/runtime/files/lux at master · meta-erlang/meta-erlang · GitHub](https://github.com/meta-erlang/meta-erlang/tree/master/lib/oeqa/runtime/files/lux) [Testing meta-erlang with LuX | meta-erlang](https://meta-erlang.github.io/blog/2025/09/26/index/)

Some random ideas to improve lux usage would be:

- swap rebar3 shelltests ([rebar3/.github/workflows/shelltests.yml at main · erlang/rebar3 · GitHub](https://github.com/erlang/rebar3/blob/main/.github/workflows/shelltests.yml)) [GitHub - tsloughter/rebar3\_tests: Rebar3 ShellTestRunner tests](https://github.com/tsloughter/rebar3_tests), rewriting them using lux instead

- create a plugin for running lux test using rebar3, like run lux scripts from _test/\*\*.lux_ files with `rebar3 lux`

- improve lux documentation with exdoc

Thanks

---

<div class="post-metadata">

**Author:** ![etnt](https://erlangforums.com/user_avatar/erlangforums.com/etnt/32/892_2.png) [@etnt](https://erlangforums.com/u/etnt)\
**Post date:** [September 30, 2025, 7:13am UTC](https://erlangforums.com/t/have-you-ever-tried-lux-tool-for-testing/5099/2 "2025-09-30T07:13:53Z")

</div>

Here is another project using lux:

> **[GitHub - etnt/yaws\_appmod\_router: Yaws route handling](https://github.com/etnt/yaws_appmod_router)**
>
> Yaws route handling

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

–T

---

<div class="post-metadata">

**Author:** ![etnt](https://erlangforums.com/user_avatar/erlangforums.com/etnt/32/892_2.png) [@etnt](https://erlangforums.com/u/etnt)\
**Post date:** [October 1, 2025, 2:01pm UTC](https://erlangforums.com/t/have-you-ever-tried-lux-tool-for-testing/5099/3 "2025-10-01T14:01:49Z")

</div>

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

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

```

in order to build the `runpty` binary that lux is using
