[nim, tunji] #X Creates option to run functional tests in headless or visual modes