From 25bdf24217366a50bd00a45b3c1ce77fa6a9a01b Mon Sep 17 00:00:00 2001 From: Dawid Majsnerowski Date: Tue, 19 Nov 2019 17:30:21 +0100 Subject: [PATCH] Jenkins file testing --- Jenkinsfile | 3 ++- README.md | 6 +++++- package.json | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 00cadac..60a8af0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,8 @@ } stage('Test') { steps { - echo 'Testing..' + sh 'npm install' + sh 'npm test' } } stage('Deploy') { diff --git a/README.md b/README.md index 8e90783..6625a43 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ Testowe Readme do projektu BestNotes -Testowa zmiana \ No newline at end of file +Testowa zmiana + +# Run Webdriver.IO tests locally +To run WebdriverIO tests locally, just execute: +```./node_modules/.bin/wdio run ./test/config/base.conf.js``` \ No newline at end of file diff --git a/package.json b/package.json index 739a403..b9767d2 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "test": "tests" }, "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "test": "./node_modules/.bin/wdio run ./test/config/base.conf.js" }, "repository": { "type": "git",