#!/bin/bash

cd "$(dirname "$0")"

if [ ! -d ../node_modules ]; then
    echo "Dependencies are not installed, installing"
    cd ../ && npm install --loglevel silent && cd ./scripts
fi

if [ ! -x ../node_modules/.bin/yuitest ]; then
    echo "YUITest is not installed, installing"
    cd ../ && npm install --loglevel silent && cd ./scripts
fi


#!/bin/bash

cd "$(dirname "$0")"

if [ ! -d ../node_modules ]; then
    echo "Dependencies are not installed, installing"
    cd ../ && npm install --loglevel silent && cd ./scripts
fi

if [ ! -x ../node_modules/.bin/yuitest ]; then
    echo "YUITest is not installed, installing"
    cd ../ && npm install --loglevel silent && cd ./scripts
fi

if [ -d ../tests/out ]; then
    echo "Prior out directory found, removing."
    rm -rRf ../tests/out/
fi

Remove old out dir before starting new test
Remove old out dir before starting new test
