-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cds-add-cucumber recommends vscode plugin (#162)
- Loading branch information
Showing
2 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#!/bin/bash | ||
set -e | ||
set -x | ||
|
||
ROOT_DIR=`pwd` | ||
DIR=tmp/getting-started-locally-with-local-ui5-tgz | ||
test -d $DIR && rm -r -f $DIR | ||
mkdir -p $DIR | ||
cd $DIR | ||
npm init -y | ||
|
||
npm init -w dk -y | ||
npm add -w dk @sap/cds-dk | ||
|
||
npm init -w service -y | ||
cd service | ||
rm package.json | ||
|
||
npx cds init --add sample | ||
npm add ../../.. || true | ||
test -f ./.vscode/extensions.json && rm ./.vscode/extensions.json | ||
npx cds-add-cucumber | ||
# requireModule does not work with links -> require the steps directly | ||
cat <<EOF >cucumber.yml | ||
default: | ||
require: | ||
- ../../../lib/index.js | ||
EOF | ||
|
||
. ${ROOT_DIR}/test/bin/.sapui5.version.sh | ||
. ${ROOT_DIR}/test/bin/.sapui5.tgz.sh | ||
if [ -f ${SAPUI5_ARCHIVE_FILE} ]; then | ||
echo "Found UI5 local archive: ${SAPUI5_ARCHIVE_FILE}" | ||
else | ||
echo "Could not find UI5 local archive" | ||
exit 1 | ||
fi | ||
|
||
npx cds-add-cucumber-plugin -p local-ui5-tgz -f ./app/index.html | ||
|
||
npx cucumber-js test |