Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore ts-rs tests by default #253

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
- name: dependencies e2e test
working-directory: e2e/dependencies/consumer
run: |
cargo t
cargo t -- --ignored
tsc bindings/* --noEmit --noUnusedLocals --strict
- name: dependencies e2e test with default export env
working-directory: e2e/dependencies/consumer
run: |
TS_RS_EXPORT_DIR=custom-bindings cargo t
TS_RS_EXPORT_DIR=custom-bindings cargo t -- --ignored
shopt -s globstar
tsc custom-bindings/**/*.ts --noEmit --noUnusedLocals --strict
e2e-workspace:
Expand All @@ -35,14 +35,14 @@ jobs:
- name: workspace e2e test
working-directory: e2e/workspace
run: |
cargo t
cargo t -- --ignored
shopt -s globstar
tsc parent/bindings/**/*.ts --noEmit --noUnusedLocals --strict
rm -rf parent/bindings
- name: workspace e2e with default export env
working-directory: e2e/workspace
run: |
TS_RS_EXPORT_DIR=custom-bindings cargo t
TS_RS_EXPORT_DIR=custom-bindings cargo t -- --ignored
shopt -s globstar
tsc parent/custom-bindings/**/*.ts --noEmit --noUnusedLocals --strict
rm -rf parent/custom-bindings
Expand All @@ -59,12 +59,12 @@ jobs:
- name: example e2e test
working-directory: example
run: |
cargo t
cargo t -- --ignored
tsc bindings/* --noEmit
- name: example e2e with default export env
working-directory: example
run: |
TS_RS_EXPORT_DIR=custom-bindings cargo t
TS_RS_EXPORT_DIR=custom-bindings cargo t -- --ignored
shopt -s globstar
tsc custom-bindings/**/*.ts --noEmit --noUnusedLocals --strict

Expand Down Expand Up @@ -96,7 +96,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Test
run: |
cargo test --all-features
cargo test --all-features -- --ignored
shopt -s globstar
tsc ts-rs/bindings/**/*.ts --noEmit --noUnusedLocals --strict
rm -rf ts-rs/bindings
Expand All @@ -113,7 +113,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Test
run: |
TS_RS_EXPORT_DIR=output cargo test --no-default-features
TS_RS_EXPORT_DIR=output cargo test --no-default-features -- --ignored
shopt -s globstar
tsc ts-rs/output/**/*.ts --noEmit --noUnusedLocals --strict
rm -rf ts-rs/output
Expand All @@ -130,7 +130,7 @@ jobs:
- uses: Swatinem/rust-cache@v2
- name: Test
run: |
cargo test --no-default-features
cargo test --no-default-features -- --ignored
shopt -s globstar
tsc ts-rs/bindings/**/*.ts --noEmit --noUnusedLocals
rm -rf ts-rs/bindings
1 change: 1 addition & 0 deletions macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ impl DerivedTS {
quote! {
#[cfg(test)]
#[test]
#[ignore = "To export your ts-rs bindings, run `cargo test export_bindings_ -- --ignored`"]
fn #test_fn() {
#ty::export_all().expect("could not export type");
}
Expand Down
Loading