You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "Available disk space: $(df -h . 2>/dev/null || echo 'df command not available')"
135
+
136
+
echo "=== Testing plotly with Firefox ==="
137
+
cargo test -p plotly --features static_export_default --lib -- --nocapture
138
+
139
+
echo "=== Testing plotly_static with Firefox ==="
140
+
cargo test -p plotly_static --features geckodriver,webdriver_download -- --nocapture
119
141
else
120
-
cargo test -p plotly --features static_export_chromedriver,static_export_downloader --lib
121
-
cargo test -p plotly_static --features chromedriver,webdriver_download
142
+
echo "Testing with Chrome/chromedriver..."
143
+
echo "=== Chrome Environment Check ==="
144
+
echo "Chrome version: $(google-chrome --version 2>/dev/null || echo 'Chrome not found in PATH')"
145
+
echo "chromedriver version: $(chromedriver --version 2>/dev/null || echo 'chromedriver not found in PATH')"
146
+
147
+
echo "=== Testing plotly with Chrome ==="
148
+
cargo test -p plotly --features static_export_chromedriver,static_export_downloader --lib -- --nocapture
149
+
150
+
echo "=== Testing plotly_static with Chrome ==="
151
+
cargo test -p plotly_static --features chromedriver,webdriver_download -- --nocapture
122
152
fi
153
+
154
+
echo "=== Cleanup after tests ==="
155
+
pkill -f chromedriver || echo "No chromedriver processes to kill"
156
+
pkill -f geckodriver || echo "No geckodriver processes to kill"
157
+
pkill -f firefox || echo "No firefox processes to kill"
158
+
pkill -f chrome || echo "No chrome processes to kill"
123
159
124
160
test-macos-compatibility:
125
161
name: Test macOS Compatibility
@@ -170,22 +206,31 @@ jobs:
170
206
set -x # Enable debug mode
171
207
172
208
echo "=== Testing Chrome installation ==="
173
-
cargo test -p plotly_static --features chromedriver,webdriver_download --lib macos_tests::macos_tests::test_chrome_installation -- --nocapture || echo "Chrome installation test failed"
209
+
cargo test -p plotly_static --features chromedriver,webdriver_download --lib macos_tests::macos_tests::test_chrome_installation || echo "Chrome installation test failed"
174
210
175
211
echo "=== Testing chromedriver installation ==="
176
-
cargo test -p plotly_static --features chromedriver,webdriver_download --lib macos_tests::macos_tests::test_chromedriver_installation -- --nocapture || echo "chromedriver installation test failed"
212
+
cargo test -p plotly_static --features chromedriver,webdriver_download --lib macos_tests::macos_tests::test_chromedriver_installation || echo "chromedriver installation test failed"
177
213
178
214
echo "=== Testing static exporter creation ==="
179
-
cargo test -p plotly_static --features chromedriver,webdriver_download --lib macos_tests::macos_tests::test_static_exporter_creation_macos -- --nocapture || echo "Static exporter creation test failed"
215
+
cargo test -p plotly_static --features chromedriver,webdriver_download --lib macos_tests::macos_tests::test_static_exporter_creation_macos || echo "Static exporter creation test failed"
180
216
181
217
echo "=== Testing basic PNG export ==="
182
-
cargo test -p plotly_static --features chromedriver,webdriver_download --lib macos_tests::macos_tests::test_basic_png_export_macos -- --nocapture || echo "Basic PNG export test failed"
218
+
cargo test -p plotly_static --features chromedriver,webdriver_download --lib macos_tests::macos_tests::test_basic_png_export_macos || echo "Basic PNG export test failed"
183
219
184
220
echo "=== Testing macOS Chrome flags ==="
185
-
cargo test -p plotly_static --features chromedriver,webdriver_download --lib macos_tests::macos_tests::test_macos_chrome_flags -- --nocapture || echo "macOS Chrome flags test failed"
221
+
cargo test -p plotly_static --features chromedriver,webdriver_download --lib macos_tests::macos_tests::test_macos_chrome_flags || echo "macOS Chrome flags test failed"
186
222
187
223
echo "=== Testing user data directory management ==="
188
-
cargo test -p plotly_static --features chromedriver,webdriver_download --lib macos_tests::macos_tests::test_user_data_directory_management -- --nocapture || echo "User data directory management test failed"
224
+
cargo test -p plotly_static --features chromedriver,webdriver_download --lib macos_tests::macos_tests::test_user_data_directory_management || echo "User data directory management test failed"
225
+
226
+
echo "=== Testing PDF debugging ==="
227
+
cargo test -p plotly_static --features chromedriver,webdriver_download --lib macos_tests::macos_tests::test_pdf_debugging_macos || echo "PDF debugging test failed"
228
+
229
+
echo "=== Testing PDF with alternative flags ==="
230
+
cargo test -p plotly_static --features chromedriver,webdriver_download --lib macos_tests::macos_tests::test_pdf_with_alternative_flags || echo "PDF alternative flags test failed"
0 commit comments