Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
Merge pull request #5 from webrtc/renameRunTest
Browse files Browse the repository at this point in the history
Rename run-test>start-tests.sh to make it clearer
  • Loading branch information
KaptenJansson committed Feb 9, 2016
2 parents bbf0028 + 3076c45 commit db5816f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webrtc-utilities",
"version": "0.0.2",
"version": "0.0.5",
"author": "The WebRTC project authors (https://www.webrtc.org/)",
"description": "WebRTC test framework utilities.",
"license": "BSD-3-Clause",
Expand All @@ -18,7 +18,7 @@
},
"scripts": {
"prepublish": "grunt githooks",
"test": "grunt && test/run-tests"
"test": "grunt && ./test/start-tests.sh"
},
"devDependencies": {
"grunt": "^0.4.5",
Expand Down
2 changes: 1 addition & 1 deletion test/run-tests → src/testrunner/start-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# tree.
#!/bin/sh

# Run testling with a default set of parameters
# Run with a default set of parameters
BINDIR=./browsers/bin
export BROWSER=${BROWSER-chrome}
export BVER=${BVER-stable}
Expand Down
21 changes: 21 additions & 0 deletions test/start-tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
#
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file in the root of the source
# tree.
#!/bin/sh

# Run with a default set of parameters
BINDIR=./browsers/bin
export BROWSER=${BROWSER-chrome}
export BVER=${BVER-stable}
BROWSERBIN=$BINDIR/$BROWSER-$BVER
if [ ! -x $BROWSERBIN ]; then
echo "Installing browser"
./node_modules/travis-multirunner/setup.sh
fi
echo "Starting browser"
PATH=$PATH:./node_modules/.bin

node test/run-tests.js

0 comments on commit db5816f

Please sign in to comment.