Skip to content

Commit

Permalink
Add client tests phase
Browse files Browse the repository at this point in the history
  • Loading branch information
avdev4j committed Dec 22, 2020
1 parent 302aba5 commit 1801e33
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/smoke-test-imperative.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,7 @@ jobs:
run: sudo $JHI_SCRIPTS/01-install-global-jhipster.sh
- name: 'Generate JHipster Application'
run: $JHI_SCRIPTS/02-generate-project.sh $JHI_APP
- name: 'Run JHipster Application server test'
run: $JHI_SCRIPTS/03-run-server-test.sh $JHI_APP
- name: 'Run JHipster Application server tests'
run: $JHI_SCRIPTS/03-run-server-tests.sh $JHI_APP
- name: 'Run JHipster Application client tests'
run: $JHI_SCRIPTS/03-run-client-test.sh $JHI_APP
18 changes: 18 additions & 0 deletions test-integration/scripts/04-run-client-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

set -e
source $(dirname $0)/00-init-env.sh

#-------------------------------------------------------------------------------
# Launch frontend tests
#-------------------------------------------------------------------------------
cd "$JHI_FOLDER_APP"
JHI_CLIENT_PACKAGE_MANAGER=npm

if [ -f "tsconfig.json" ]; then
if [ -f "src/main/webapp/app/app.tsx" ]; then
$JHI_CLIENT_PACKAGE_MANAGER run test-ci
else
$JHI_CLIENT_PACKAGE_MANAGER test
fi
fi

0 comments on commit 1801e33

Please sign in to comment.