Skip to content

Investigate the behavior of Spring integration testing coverage calculation and minimization #2218

@EgorkaKulikov

Description

@EgorkaKulikov

Description

Consider generating Spring integration tests with configuration for project spring-boot-testing, method OrderService.createOrder with 100% fuzzer in ilya_m/spring_integration_test_prototype branch.

The following tests are generated. It seems strange that both of them cover the unique line in method under test, so it seems that one of them must be minimized.

Order order1 = new Order();
        order1.setBuyer("abc");
        order1.setId(1L);
        order1.setPrice(Double.POSITIVE_INFINITY);

        Order actual = orderService.createOrder(order1);

        <...>
        assertEquals(expected, actual);
Order order = new Order();
        order.setQty(Integer.MIN_VALUE);
        order.setId(-1L);

        Order actual = orderService.createOrder(order);

        <...>
        assertEquals(expected, actual);

Metadata

Metadata

Assignees

Labels

comp-minimizerIssue is related to Minimization phasecomp-springIssue is related to Spring projects supportctg-enhancementNew feature, improvement or change request

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions