Skip to content

Better test coverage #18

@eserte

Description

@eserte

It would be nice to further increase test coverage. To do so I think we have to run tests against a real kafka server. There's some work in progress to implement this: https://github.com/idealo/Kafka-Librd/blob/more-testing-with-broker/t/fulltest.t
This test script starts zookeeper and kafka on the fly with temporary directories and ports, and runs some Kafka::Librd commands on this.

However a lot of polishing is still needed:

  • probably this test script should only run in some environments (e.g. in some travis-ci configurations, and if the user explicitly requests it)
  • kafka should be made available, either downloaded by the test script or outside using .travis.yml
  • zookeeper should be made available, either downloaded by the test script or outside using .travis.yml; installation could also be done via package manager at least on debian-based systems
  • there are some sleep() calls in the test script which should be removed
  • more test cases have to be written

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions