odo test allows to specify test command to run for component using --test-command in addition to supports running default test (covered in this issue #1974). There should be the way to list available test commands (see odo issue #4449 using odo test list sub-command or similar to avoid parsing of component's devfile.