diff --git a/auto-run-dockerized-nondex/README.md b/auto-run-dockerized-nondex/README.md index 6a973add..1b630b9c 100644 --- a/auto-run-dockerized-nondex/README.md +++ b/auto-run-dockerized-nondex/README.md @@ -37,6 +37,10 @@ docker run \ --- +The `-v` flag in the command mounts a local directory, ``, to the container directory `app/`. This ensures that logs generated during execution are saved directly to the user's local system. You can customize this behavior by binding a different local directory to the container, based on your preference. + +--- + ## Script Workflow ### 1. Clone the Repository diff --git a/auto-run-dockerized-nondex/entrypoint.sh b/auto-run-dockerized-nondex/entrypoint.sh index 42909834..87aa0587 100644 --- a/auto-run-dockerized-nondex/entrypoint.sh +++ b/auto-run-dockerized-nondex/entrypoint.sh @@ -16,7 +16,7 @@ echo "Printing java version for reference" java --version # Initialize the Maven install command -MVN_INSTALL_CMD="mvn clean install" +MVN_INSTALL_CMD="mvn clean install -DskipTests" # Add the -pl option if MODULE is provided if [ -n "$MODULE" ]; then @@ -58,7 +58,7 @@ NONDEX_LOG_FILE="$NONDEX_LOG_DIR/nondex-logs-$(date +%Y%m%d-%H%M%S).log" NONDEX_FAILURE_FILE="$NONDEX_LOG_DIR/nondex-flaky-tests-$(date +%Y%m%d-%H%M%S).txt" echo "Running the NonDex plugin. Logs will be saved to $NONDEX_LOG_FILE" -eval $NONDEX_CMD | tee "$NONDEX_LOG_FILE" +eval $NONDEX_CMD 2>&1 | tee "$NONDEX_LOG_FILE" if [ ! -f "$NONDEX_LOG_FILE" ]; then echo "Error: NonDex log file not found at $NONDEX_LOG_FILE."