Thanks Nathaniel, that's really helpful! I've been working on some testing based on rpc_test and test_common etc which I might post here for review, if that's possible?
It looks really great and I'm really keen to get a good testing framework for our gRPC microservices. Thanks, Beth On Thursday, April 19, 2018 at 4:57:35 PM UTC+1, Nathaniel Manista wrote: > > On Thu, Apr 19, 2018 at 7:19 AM, Beth Anderson <[email protected] <javascript:> > > wrote: > >> Rather stupidly I've realised there are tests here: >> >> https://github.com/grpc/grpc/tree/master/src/python/grpcio_tests >> >> ...although if there are any docs, I'd be really grateful for the links... >> >> On Thursday, April 19, 2018 at 1:54:30 PM UTC+1, Beth Anderson wrote: >>> >>> Hi all, >>> >>> I'm interested in this module >>> https://github.com/grpc/grpc/tree/master/src/python/grpcio_testing and >>> wondered if there are any docs or code samples for it? To test my Python >>> gRPC project. >>> >> > There's... less documentation than we'd like, especially around the > grpc_testing package (note that it isn't even yet released on PyPI... > <https://github.com/grpc/grpc/issues/14294>). > > Have you yet used run_tests ("./tools/run_tests/run_tests.py > --language=python --compiler=all_the_cpythons --newline_on_success") to run > our tests? If not, that would be the right place to start. If so: we expect > that you'd be able to write tests of your system that uses gRPC Python that > have more or less the same shape as our own tests of gRPC Python. I usually > say that _rpc_test > <https://github.com/grpc/grpc/blob/master/src/python/grpcio_tests/tests/unit/_rpc_test.py> > > is the right place to start reading the tests of gRPC Python as that tests > the core behavior and primary features of the library. Something like the > intraop tests > <https://github.com/grpc/grpc/tree/master/src/python/grpcio_tests/tests/interop> > > ("intraop" means "the Python implementations of the > implementation-interoperation suite, but run against one another rather > than against other gRPC implementations") is more representative of > critical user journeys but has a lot more going on. > > Please do follow up with how your testing progresses; this is a topic > about which we've heard less from developers than we'd like. > -Nathaniel > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/767af090-7f9a-4944-9c72-9149de8946e5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
