Skip to content

Commit

Permalink
test: add profile for generating test sql scripts (#611)
Browse files Browse the repository at this point in the history
  • Loading branch information
olavloite committed Nov 10, 2020
1 parent 34221d7 commit d5ebf7e
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions google-cloud-spanner/pom.xml
Expand Up @@ -377,5 +377,38 @@
</plugins>
</build>
</profile>
<profile>
<!-- Profile for generating new sql test scripts. See ConnectionImplGeneratedSqlScriptTest
for more information. -->
<id>generate-test-sql-scripts</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>generateTestScripts</id>
<phase>compile</phase>
<goals>
<goal>java</goal>
</goals>
<configuration>
<mainClass>com.google.cloud.spanner.connection.SqlTestScriptsGenerator</mainClass>
<systemProperties>
<systemProperty>
<key>do_log_statements</key>
<value>true</value>
</systemProperty>
</systemProperties>
<classpathScope>test</classpathScope>
<skip>false</skip>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit d5ebf7e

Please sign in to comment.