forked from loafle/openapi-generator-original
remove objc, add pom.xml to test C# petstore client
This commit is contained in:
2
pom.xml
2
pom.xml
@@ -473,7 +473,7 @@
|
||||
<module>samples/server/petstore/spring-mvc</module>
|
||||
<module>samples/client/petstore/ruby</module>
|
||||
<module>samples/server/petstore/jaxrs</module>
|
||||
<module>samples/client/petstore/objc/SwaggerClientTests</module>
|
||||
<!--module>samples/client/petstore/objc/SwaggerClientTests</module-->
|
||||
<!--module>samples/client/petstore/swift/SwaggerClientTests</module-->
|
||||
</modules>
|
||||
</profile>
|
||||
|
||||
14
samples/client/petstore/csharp/SwaggerClientTest/mono-nunit.sh
Executable file
14
samples/client/petstore/csharp/SwaggerClientTest/mono-nunit.sh
Executable file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
wget -nc https://nuget.org/nuget.exe;
|
||||
mozroots --import --sync
|
||||
|
||||
# remove bin/Debug/SwaggerClientTest.dll
|
||||
rm bin/Debug/SwaggerClientTest.dll 2> /dev/null
|
||||
|
||||
# install NUnit runners via NuGet
|
||||
mono nuget.exe install NUnit.Runners -Version 2.6.4 -OutputDirectory testrunner
|
||||
|
||||
# build the solution and run the unit test
|
||||
xbuild SwaggerClientTest.sln && \
|
||||
mono ./testrunner/NUnit.Runners.2.6.4/tools/nunit-console.exe bin/Debug/SwaggerClientTest.dll
|
||||
|
||||
56
samples/client/petstore/csharp/SwaggerClientTest/pom.xml
Normal file
56
samples/client/petstore/csharp/SwaggerClientTest/pom.xml
Normal file
@@ -0,0 +1,56 @@
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.wordnik</groupId>
|
||||
<artifactId>CsharpPetstoreClientTests</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<name>C# Swagger Petstore Client</name>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-dependency-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>copy-dependencies</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<outputDirectory>${project.build.directory}</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.mojo</groupId>
|
||||
<artifactId>exec-maven-plugin</artifactId>
|
||||
<version>1.2.1</version>
|
||||
<executions>
|
||||
<!--execution>
|
||||
<id>bundle-install</id>
|
||||
<phase>pre-integration-test</phase>
|
||||
<goals>
|
||||
<goal>exec</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<executable>bundle</executable>
|
||||
<arguments>
|
||||
<argument>install</argument>
|
||||
</arguments>
|
||||
</configuration>
|
||||
</execution-->
|
||||
<execution>
|
||||
<id>mono-test</id>
|
||||
<phase>integration-test</phase>
|
||||
<goals>
|
||||
<goal>exec</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<executable>mono-nunit.sh</executable>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</project>
|
||||
Reference in New Issue
Block a user