@Test
void shouldAllowEmptyReportDirectory(@TempDir final Path temp) throws Exception {

    final Path home = Files.createDirectories(temp.resolve("home"));
    createConfig(home, "allure-test.yml");
    final ConfigOptions options = mock(ConfigOptions.class);
    when(options.getProfile()).thenReturn("test");
    final Path reportPath = Files.createDirectories(temp.resolve("report"));
    final Commands commands = new Commands(home);
    final ExitCode exitCode = commands.generate(reportPath, Collections.emptyList(), false, options);
    assertThat(exitCode)
            .isEqualTo(ExitCode.NO_ERROR);
}