File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ name : run-tests
3+ description : Run tests for Android Image Cropper
4+ argument-hint : " [test-scope: all|unit|snapshot|specific-class]"
5+ level : 1
6+ triggers :
7+ - " run tests"
8+ - " test"
9+ - " run all tests"
10+ ---
11+
12+ # Run Tests Skill
13+
14+ Run the test suite for Android Image Cropper with various configurations.
15+
16+ ## Usage
17+
18+ Run this skill to execute tests with different scopes:
19+ - All tests (default)
20+ - Unit tests only
21+ - Specific test class
22+ - With code coverage
23+
24+ ## Commands
25+
26+ ### Run All Tests
27+ ``` bash
28+ ./gradlew testDebug
29+ ```
30+
31+ ### Run With Full Validation
32+ ``` bash
33+ ./gradlew licensee ktlint testDebug build --stacktrace
34+ ```
35+
36+ ### Run Specific Test Class
37+ ``` bash
38+ ./gradlew testDebug --tests " com.canhub.cropper.BitmapUtilsTest"
39+ ```
40+
41+ ### Run Paparazzi Snapshot Tests
42+ ``` bash
43+ ./gradlew verifyPaparazziDebug
44+ ```
45+
46+ ### Record New Paparazzi Snapshots
47+ ``` bash
48+ ./gradlew recordPaparazziDebug
49+ ```
50+
51+ ## Test Output
52+
53+ Tests output to: ` cropper/build/reports/tests/testDebugUnitTest/index.html `
54+
55+ ## What to Check After Running
56+
57+ 1 . ✅ All tests pass
58+ 2 . ✅ No flaky tests
59+ 3 . ✅ Coverage is adequate
60+ 4 . ✅ No test errors or warnings
61+ 5 . ✅ Snapshot tests match (if applicable)
62+
63+ ## Common Issues
64+
65+ ### Issue: Paparazzi snapshots differ
66+ ** Solution** : Review changes, if correct run: ` ./gradlew recordPaparazziDebug `
67+
68+ ### Issue: Robolectric tests fail
69+ ** Solution** : Check Android version compatibility, update Robolectric if needed
70+
71+ ### Issue: Tests timeout
72+ ** Solution** : Large images may cause timeouts, check bitmap sizes in tests
You can’t perform that action at this time.
0 commit comments