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 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 ("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
Beth Anderson
unread,
Apr 19, 2018, 6:09:38 PM4/19/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to grpc.io
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
Beth Anderson
unread,
Apr 23, 2018, 8:17:25 AM4/23/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to grpc.io
I've been hacking away with the grpco_testing package and it's really interesting, although I'm not sure I understand it yet. :)
In the meanwhile, I've been toying with a couple of tests; one is more of an integration test and actually runs the server and the other is more of a unit test which tests only the implementation of the service itself, ignoring the gRPC scaffold.