package hu.pazsitz.pacuse.tests;

import hu.pazsitz.pacuse.tests.helpers.StepDefBase;
import hu.pazsitz.pacuse.tests.helpers.WebDriverFactory;

import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;

import cucumber.api.CucumberOptions;

/**
 * RunTestNgTests.java
 *
 * @author Zoltan Pazsit <pazsitz@pazsitz.hu>
 * @copyright Copyright (c) 2014, Zoltan Pazsit
 */
@Test(groups={"cucumber"})
@CucumberOptions(
    format = {"pretty", "html:reports/cucumber-html-report", "json:reports/cucumber-report.json"},
    features="test/hu/pazsitz/pacuse/tests/cucumber/features",
    tags = { "@test" } //what tags to include(@)/exclude(@~)
)
// Default TestNG Runner, runs all of the features are available
public class RunTestNgTests extends AbstractTestNGCucumberWithReporterTests {
    /**
     * Right now the Cucumber ReportGenerator doesn't support embed image only the HtmlReportGenerator
     */

    @BeforeClass
    public void init() {
    	setFilePathOfStepDefinitions("test/main/java/hu/pazsitz/pacuse/tests/cucumber/stepdefs/");
        System.setProperty("cucumber.report.embed_screenshot", Boolean.toString(true));
        System.setProperty("PaCuSe.browser", WebDriverFactory.BrowserName.FIREFOX.name());
        System.setProperty("PaCuSe.WebDriver.screenshot.path", "reports/");
    }

    @AfterClass
    public void TestSuiteTearDown() {
    	StepDefBase.getInstance().tearDown();
        ReportGenerator.main(null);
    }
}
@@ -295,16 +295,49 @@
 Options;
+%0Aimport cucumber.api.SnippetType;
 %0A%0A/**%0A *
@@ -687,16 +687,17 @@
 @test%22 %7D
+,
  //what 
@@ -727,16 +727,53 @@
 ude(@~)%0A
+    snippets = SnippetType.CAMELCASE%0A
 )%0A// Def

add camelcase annotation