@@ -113,13 +113,33 @@ jobs:
113113 - name : Test plotly and plotly_static
114114 shell : bash
115115 run : |
116+ echo "=== Platform Information ==="
117+ echo "OS: $(uname -a)"
118+ echo "Architecture: $(uname -m)"
119+ echo "Current directory: $(pwd)"
120+
121+ echo "=== Checking for existing processes ==="
122+ ps aux | grep -E "(chromedriver|geckodriver|firefox|chrome)" || echo "No browser processes found"
123+
124+ echo "=== Checking port availability ==="
125+ netstat -an | grep -E ":(4444|4445|4446|4447|4448|4449|4450)" || echo "No WebDriver ports in use"
126+
127+ echo "=== Running tests ==="
116128 if [ "${{ matrix.browser }}" = "firefox" ]; then
117- cargo test -p plotly --features static_export_default --lib
118- cargo test -p plotly_static --features geckodriver,webdriver_download
129+ echo "Testing with Firefox/geckodriver..."
130+ timeout 600 cargo test -p plotly --features static_export_default --lib -- --nocapture || echo "plotly tests failed"
131+ timeout 600 cargo test -p plotly_static --features geckodriver,webdriver_download -- --nocapture || echo "plotly_static tests failed"
119132 else
120- cargo test -p plotly --features static_export_chromedriver,static_export_downloader --lib
121- cargo test -p plotly_static --features chromedriver,webdriver_download
133+ echo "Testing with Chrome/chromedriver..."
134+ timeout 600 cargo test -p plotly --features static_export_chromedriver,static_export_downloader --lib -- --nocapture || echo "plotly tests failed"
135+ timeout 600 cargo test -p plotly_static --features chromedriver,webdriver_download -- --nocapture || echo "plotly_static tests failed"
122136 fi
137+
138+ echo "=== Cleanup after tests ==="
139+ pkill -f chromedriver || echo "No chromedriver processes to kill"
140+ pkill -f geckodriver || echo "No geckodriver processes to kill"
141+ pkill -f firefox || echo "No firefox processes to kill"
142+ pkill -f chrome || echo "No chrome processes to kill"
123143
124144 test-macos-compatibility :
125145 name : Test macOS Compatibility
@@ -186,6 +206,15 @@ jobs:
186206
187207 echo "=== Testing user data directory management ==="
188208 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"
209+
210+ echo "=== Testing PDF debugging ==="
211+ cargo test -p plotly_static --features chromedriver,webdriver_download --lib macos_tests::macos_tests::test_pdf_debugging_macos -- --nocapture || echo "PDF debugging test failed"
212+
213+ echo "=== Testing PDF with alternative flags ==="
214+ cargo test -p plotly_static --features chromedriver,webdriver_download --lib macos_tests::macos_tests::test_pdf_with_alternative_flags -- --nocapture || echo "PDF alternative flags test failed"
215+
216+ echo "=== Testing html2pdf library availability ==="
217+ cargo test -p plotly_static --features chromedriver,webdriver_download --lib macos_tests::macos_tests::test_html2pdf_library_loading -- --nocapture || echo "html2pdf library test failed"
189218
190219 - name : Run all plotly_static tests on macOS
191220 run : |
0 commit comments