-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_tests.sh
More file actions
executable file
·63 lines (59 loc) · 2.05 KB
/
setup_tests.sh
File metadata and controls
executable file
·63 lines (59 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
# Script to help setup the test target in Xcode
# Run this after manually adding the test target in Xcode
echo "================================================"
echo "ACE RFID iOS - Test Target Setup Helper"
echo "================================================"
echo ""
echo "MANUAL STEPS REQUIRED:"
echo ""
echo "1. Open ACE_RFID_iOS.xcodeproj in Xcode"
echo ""
echo "2. Add Test Target:"
echo " - Select the project in Project Navigator"
echo " - Click '+' at bottom of targets list"
echo " - Choose 'Unit Testing Bundle' for iOS"
echo " - Name: ACE_RFID_iOSTests"
echo " - Target to be tested: ACE_RFID_iOS"
echo " - Click Finish"
echo ""
echo "3. Delete the auto-generated test file:"
echo " - Xcode will create a new test file"
echo " - Delete it (we already have ACE_RFID_iOSTests.swift)"
echo ""
echo "4. Add our test file to the target:"
echo " - Select ACE_RFID_iOSTests/ACE_RFID_iOSTests.swift"
echo " - In File Inspector, check 'ACE_RFID_iOSTests' under Target Membership"
echo ""
echo "5. Verify Test Bundle Settings:"
echo " - Select ACE_RFID_iOSTests target"
echo " - Build Settings tab"
echo " - Search for 'Product Bundle Identifier'"
echo " - Should be: com.yourcompany.ACE-RFID-iOSTests (or similar)"
echo ""
echo "6. Run tests:"
echo " - Press Cmd+U to run all tests"
echo " - Or click the diamond icons next to test methods"
echo ""
echo "================================================"
echo ""
echo "After setup, you can run tests from terminal:"
echo ""
echo "xcodebuild test -scheme ACE_RFID_iOS \\"
echo " -destination 'platform=iOS Simulator,name=iPhone 15'"
echo ""
echo "================================================"
echo ""
echo "Test file location: ACE_RFID_iOSTests/ACE_RFID_iOSTests.swift"
echo "Test count: 40+ unit tests"
echo "Coverage: Data models, encoding/decoding, business logic"
echo ""
echo "Press any key to continue..."
read -n 1 -s
echo ""
echo "Opening Xcode project..."
# Open Xcode project
open ACE_RFID_iOS.xcodeproj
echo ""
echo "Xcode should now be open. Follow the steps above!"
echo ""