Skip to content

Commit

Permalink
Add logging for browser config
Browse files Browse the repository at this point in the history
  • Loading branch information
bglw committed Aug 16, 2024
1 parent bb0937b commit 6313c77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
22 changes: 3 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ jobs:
with:
fetch-depth: 1

- uses: Swatinem/rust-cache@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
Expand All @@ -49,24 +51,6 @@ jobs:
default: true
components: rustfmt, clippy

- uses: Swatinem/rust-cache@v2

- name: Debugging
run: |-
which chrome || true
which chrome-browser || true
which google-chrome-stable || true
which google-chrome-beta || true
which google-chrome-dev || true
which google-chrome-unstable || true
which chromium || true
which chromium-browser || true
which msedge || true
which microsoft-edge || true
which microsoft-edge-stable || true
which microsoft-edge-beta || true
which microsoft-edge-dev || true
- name: Build Lib
working-directory: ./toolproof
run: cargo build
Expand All @@ -78,4 +62,4 @@ jobs:
- name: Test CLI
working-directory: ./toolproof
# toolproof tests itself when run
run: cargo run --release -- --placeholders toolproof_path="$(pwd)/../target/debug/toolproof"
run: cargo run -- --placeholders toolproof_path="$(pwd)/../target/debug/toolproof"
3 changes: 3 additions & 0 deletions toolproof/src/definitions/browser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ impl BrowserTester {
async fn initialize(params: &ToolproofParams) -> Self {
match params.browser {
crate::options::ToolproofBrowserImpl::Chrome => {
let config = BrowserConfig::builder().build().unwrap();
println!("Running with browser:\n{config:#?}");

let (browser, mut handler) =
Browser::launch(BrowserConfig::builder().build().unwrap())
.await
Expand Down

0 comments on commit 6313c77

Please sign in to comment.