There is some documentation in 
https://github.com/protocolbuffers/protobuf/blob/main/conformance/README.md. 
In general, most languages use some of the shared unittests that you found 
in `src/google/protobuf` and then have a few custom tests of their own.

For encoding/decoding, you'd probably want wire_format_unittest.inc 
<https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/wire_format_unittest.inc>
.
On Monday, December 19, 2022 at 7:49:59 AM UTC-8 
[email protected] wrote:

> So I can see that the C++ `src/google/protobuf` directory has a number of 
> unittest*.proto files. Is there any documentation around this? I'm 
> particularly interested in testing encoding/decoding rather than parsing.
>
> On Monday, December 19, 2022 at 12:22:37 PM UTC+1 Luciano Joublanc wrote:
>
>> I can't find any documentation on the main website on conformance 
>> testing, for example when developing encoders for a new language. 
>>
>> The only link I see is to the tests in protoscope. It also seems that 
>> each official language implementation has it's own set of unit tests.
>>
>> Is there some set of 'standard' tests that all these codecs use in common 
>> to ensure conformance?
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/protobuf/5b3936d0-a750-4e31-8b0e-c126b75b2f08n%40googlegroups.com.

Reply via email to