Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Model-seeding generated test doesn't increase coverage #104

Open
vmassol opened this issue Oct 10, 2019 · 0 comments
Open

Model-seeding generated test doesn't increase coverage #104

vmassol opened this issue Oct 10, 2019 · 0 comments

Comments

@vmassol
Copy link
Contributor

vmassol commented Oct 10, 2019

The following test was generated:

    @Test(timeout = 4000)
    public void test02() throws Throwable
    {
        Object object0 = new Object();
        String string0 = XMLUtils.escape(object0);
        assertNotNull(string0);
    }

However the existing test suite is already covering at 100% the XMLUtils.escape() method.

I was told that the fitness function makes sure that the coverage is increased. It's not the case here.

I suspect the issue might be that the model seeding didn't do the dynamic analysis part (since the tests are in JUnit5) and thus no existing coverage was captured?

In any case it would be great to not generate tests that don't increase coverage! :)

WDYT?

Thanks

@vmassol vmassol changed the title Model-seeding generated test doesn't not increase coverage Model-seeding generated test doesn't increase coverage Oct 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant