phantomjs/test/run-tests-ghostdriver.sh

18 lines
279 B
Bash
Executable File
Raw Permalink Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

#!/usr/bin/env bash
# Go to GhostDriver (Java) Tests
pushd ./test/ghostdriver-test/java
# Ensure Gradle Wrapper is executable
chmod +x ./gradlew
# Run tests
./gradlew test -q
# Grab exit status
TEST_EXIT_STATUS=$?
# Return to starting directory
popd
exit $TEST_EXIT_STATUS