Skip to content

Increase test coverage in Display area #791

Open

Description

@JakubVanek

Current unit testing solution for the display stack is inadequate. A revision of the current testing code is necessary.

Activity

  1. added this to the v1.1.0 milestone on Jan 9, 2021
  2. jabrena commented on Jan 9, 2021

    @jabrena
    Member

    Yep, it is something missing in the library. When we added the nice EV3 Display support, we forget adding it.

    Currently, we have this status:

    image

    • ev3dev.actuators
    • ev3dev.hardware.display
    • ev3dev.utils.io
    • ev3dev.hardware.display.spi

    image

    • LCDStretch
    • LCD
    • LCDStretch.Flusher

    image

    image

    image

    With that contribution, we could enable again the following configuration to reach 80% of code coverage:

    jacocoTestCoverageVerification {
        violationRules {
            rule {
                limit {
                    //minimum = 0.75 // implement more tests
                    minimum = 0.2
                }
            }
        }
    }

    Related issue: #726

  3. modified the milestones: v1.1.0, v1.0.0 on Jan 9, 2021
  4. changed the title [-]Display architecture - increase test coverage[/-] [+]Increase test coverage in Display area[/+] on Jan 9, 2021
  5. JakubVanek commented on Jan 9, 2021

    @JakubVanek
    ContributorAuthor

    Given that LCDJessie is implemented as a separate class, it seems that the BitFramebuffer & FramebufferProvider paths are mostly redundant. Removing them might reduce the amount of code that needs testing.

  6. jabrena commented on Jan 9, 2021

    @jabrena
    Member

    Create a PR with this small change. I will merge directly to master.

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions