Skip to content

Commit

Permalink
refactor(emulation): reuse repetitive code templates generated by mac…
Browse files Browse the repository at this point in the history
…ros (#13)
  • Loading branch information
0x676e67 authored Mar 9, 2025
1 parent bd2f258 commit 1ef56df
Show file tree
Hide file tree
Showing 11 changed files with 1,032 additions and 455 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,13 @@ jobs:
with:
toolchain: stable
override: true
- uses: taiki-e/install-action@v2
with:
tool: cargo-nextest
- name: Tests
run: cargo test --all-features
run: |
set -euxo pipefail
cargo nextest run --workspace --all-features
windows:
name: Windows
Expand Down
22 changes: 21 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,32 @@ tracing-subscriber = "0.3.19"
[lib]
doctest = false

[[test]]
name = "client"
path = "tests/client.rs"

[[test]]
name = "emulation_chrome"
path = "tests/emulation_chrome.rs"

[[test]]
name = "emulation_okhttp"
path = "tests/emulation_okhttp.rs"

[[test]]
name = "emulation_firefox"
path = "tests/emulation_firefox.rs"

[[test]]
name = "emulation_safari"
path = "tests/emulation_safari.rs"


[[example]]
name = "emulation"
path = "examples/emulation.rs"
required-features = ["emulation", "gzip", "brotli", "deflate", "zstd", "rquest/full"]


[[example]]
name = "emulation_rand"
path = "examples/emulation_rand.rs"
Expand Down
Loading

0 comments on commit 1ef56df

Please sign in to comment.