This maven module is intended to function as a central location for integration with googleapis/conformance-tests.
In this directory conformance-tests
which is a git-submodule, containing the reference for which
the various conformance test resources are updated to.
Part of the process of updating the conformance tests involves running maven a maven build for this module. Ensure that all parent modules have been installed locally so the build can run.
pushd cd ../../
mvn -Dmaven.test.skip.exec=true install
popd
To update the conformance tests run the following commands from this module directory:
pushd conformance-tests
git pull
popd
./generate-conformance-tests.sh
git add .
If an error is encountered while generating the new resources please check the generate.log
written to the working directory.
The conformance test suites for Firestore are located in the com.google.cloud.conformance.firestore
package.
There are a number of files that together define the format of the tests as well as the tests themselves.
src/main/java/com/google/cloud/conformance/firestore/v1/TestDefinition.java
- The generated protobuf objects used to read the tests definitions
src/main/proto/google/cloud/conformance/firestore/v1/tests.proto
- The proto definition for the tests.
TestDefinition.java
is generated from this definition.
- The proto definition for the tests.
src/main/resources/com/google/cloud/conformance/firestore/v1/*.json
- Each files is a json serialized
TestFile
definition (defined in tests.proto).
- Each files is a json serialized