Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Usage: ./find_tests_with_flag.sh defaultEnabledOn tab-tray-ui-experiments
JSON_ARG="$1"
FEATURE_ARG="$2"
ROOT_DIR="./firefox-ios-tests/Tests/XCUITests"
PATTERN="addLaunchArgument(jsonFileName: \\\"$JSON_ARG\\\", featureName: \\\"$FEATURE_ARG\\\")"
grep -rl "$JSON_ARG" "$ROOT_DIR" | while read -r file; do
#!/bin/bash
# Usage: ./run_tests_with_flag.sh defaultEnabledOn tab-tray-ui-experiments
if [[ $# -ne 2 ]]; then
echo "❌ Error: Missing arguments."
echo "Usage: $0 <jsonFileName> <featureName>"
echo "Example: $0 defaultEnabledOn tab-tray-ui-experiments"
exit 1
fi