Content-Length: 278170 | pFad | http://github.com/1e100/bazel_doctest

A1 GitHub - 1e100/bazel_doctest: Python Doctest support for Bazel.
Skip to content

1e100/bazel_doctest

Repository files navigation

Bazel Doctest

Much to my surprise, I could not find support for the excellent doctest Python tests in Bazel, so I implemented a macro, which I am sharing here.

Usage

In your BUILD file:

load("//:doctest.bzl", "py_doc_test")

py_doc_test(
  name = "foo_doctest",
  deps = [":bar", ":baz"]
)

If python targets :bar and :baz define doctests, these doctests will be executed. If your tests are not instantaneous or if dependencies have large transitive closures, you might want to use the preferred "one test per library" pairing so that your build could remain fast and incremental.

See BUILD files in this repo for details.

Contributions

PRs welcome.

License

MIT

Releases

No releases published

Packages

No packages published








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/1e100/bazel_doctest

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy