Skip to content

Add tests to make sure python modules are exposed correctly #14

Closed

Description

@yongtang

While tensorflow-io has tests covered for different modules (Ignite/Kafka/etc) through bazel test, those tests are always run inside the repo directory and no through pip install.

It would be good to have tests to make sure pip install correctly exposes python modules. Some simple tests of pip install tensorflow-io-*.whl && python -c "import tensorflow_io.Kafka" would be good enough to serve the needs here.

Activity

  1. juwangvsu commented on Dec 9, 2018

    @juwangvsu

    run test inside the repo is fine. It would be nice to have a section in the README about test procedure and
    location of the test code.

  2. yongtang commented on Dec 11, 2018

    @yongtang
    MemberAuthor

    Each op may have different test procedures. For example, Kafka requires setting up a docker container of kafka before running test. I think individual README.md at each repo would be nice.

  3. yongtang commented on Jan 27, 2019

    @yongtang
    MemberAuthor

    An integration test has been added to tensorflow/io/tests. The integration test is invoked through pip install tensorflow-io-*.whl && python -m pytest . so the exposure of python modules could be validated. It covers video format only at the moment but could be a start.

  4. yongtang commented on Mar 3, 2019

    @yongtang
    MemberAuthor

    Think this issue is resolved with #118.

  5. added a commit that references this issue on Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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