Skip to content

Commit

Permalink
Allow running e2e tests w/o Fractor config file
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaswolf committed Sep 3, 2024
1 parent 7eb03bf commit cf98c1c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion e2e/run-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,13 @@ do
# copy over our fixture to the path that Fractor will run in
cp -r $TEST_DIR/fixtures/ $TEST_DIR/result/

./vendor/bin/fractor process -c $TESTS_BASE_DIR/$TEST_DIR/fractor.php > $TEST_DIR/output.txt
CONFIG_FILE=""
if [ -f $TESTS_BASE_DIR/$TEST_DIR/fractor.php ]
then
CONFIG_FILE="-c $TESTS_BASE_DIR/$TEST_DIR/fractor.php"
fi

./vendor/bin/fractor process $CONFIG_FILE > $TEST_DIR/output.txt

set +x
echo
Expand Down

0 comments on commit cf98c1c

Please sign in to comment.