Skip to content

Add test utility to wrap pytest.main incantation #11318

@areusch

Description

@areusch

Over the past year or two I've been encouraging the use of pytest.main in TVM unittests to make it easier to run a single test case without requiring developers to let pytest go through collection of hundreds of unittests:

if __name__ == '__main__':
  sys.exit(pytest.main([__file__] + sys.argv[1:]))

This is quite an earful and it's hard to get right. It'd be better to reduce this to:

if __name__ == '__main__':
  tvm.testing.main()

This GH issue tracks that task.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions