Skip to content
Permalink
Browse files

nant client will run the cypress tests

  • Loading branch information...
tpokorra committed Nov 23, 2019
1 parent 6ef8863 commit 2fc2eea300c604c22ea3de10ae21335aa65b0b5b
Showing with 11 additions and 1 deletion.
  1. +9 −1 OpenPetra.build
  2. +2 −0 inc/nant/OpenPetra.common.xml
@@ -430,7 +430,15 @@ useful parameters
<echo message="Target test-client (outer) started at: ${datetime::now()}" />

<loadtasks assembly="${Ict.Tools.NAntTasks.DLL}" unless="${task::exists('GenerateNamespaceMap')}"/>
<nant inheritall="false" target="test-client" buildfile="${path::combine(dir.csharp, 'ICT/Testing/ICT.Testing.build')}" verbose="${verbose}"/>

<!-- to avoid timeout, need to make sure everything gets compiled on the web request -->
<exec program="bash"
workingdir="${dir.root}/js-client"
commandline="-c &quot;curl --silent --retry 5 http://localhost:${Http.Port}/api/serverSessionManager.asmx/IsUserLoggedIn&quot;" />

<exec program="bash"
workingdir="${dir.root}/js-client"
commandline="-c &quot;LANG=en CYPRESS_baseUrl=http://localhost:${Http.Port} ./node_modules/.bin/cypress run --config video=false&quot;" />

<echo message="Target test-client (outer) finished at: ${datetime::now()}" />
</target>
@@ -291,6 +291,8 @@
overwrite="false" />

<!-- Server configuration -->
<property name="Http.Port" value="80"
overwrite="false" />
<property name="Server.Port" value="9000"
overwrite="false" />
<property name="Server.DebugLevel" value="0"

0 comments on commit 2fc2eea

Please sign in to comment.
You can’t perform that action at this time.