Skip to content

ErrorCollector is not working for me - can it run using Cucumber Runner class? #983

Closed
@JasonSmiley

Description

ErrorCollector doesn't seem to work, even when I do the most basic test.

See code:

@Rule
public ErrorCollector test = new ErrorCollector();

@When("I test my code")
public void I_test_my_code(){
    //Sandbox step - put code here you want to test
    //new TestCase("Testing Error Handler 1", false, equalTo(true), false).runTest();
    //new TestCase("Testing Error Handler 2", false, equalTo(true), false).runTest();
    //new TestCase("Testing Error Handler 3", true, equalTo(true), false).runTest();

    test.checkThat("Testing Error Handler 1", false, equalTo(true));
    test.checkThat("Testing Error Handler 2", false, equalTo(true));
    test.checkThat("Testing Error Handler 3", true, equalTo(true));
}

Note, I am using Cucumber JVM to run my tests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions