In the test suite for Makeup, I need some dummy lexers to test some of the combinators. I could define all the lexers in
test_helper.exs, but even with only 2 lexers the file is already quite big, and I’ll have add even more lexers to tesl all combinators. I’ve moved the lexers into their own files and I’m currently doing this:
Kernel.ParallelCompiler.compile([ "test/lexer/fixtures/token_lexer.exs", "test/lexer/fixtures/word_list_lexer.exs" ]) ExUnit.start()
Is this the right way to do it? I think there’s no problem in invoking the compiler directly, but I wonder if there is a more standard way I don’t know.