Skip to content

Commit

Permalink
refactor: Rename test_ws feature to test-ws
Browse files Browse the repository at this point in the history
  • Loading branch information
orhun committed Nov 22, 2020
1 parent d6b8e6f commit ceb7c71
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
parse: 'grep "browser_download_url.*tar.gz" | cut -d : -f 2,3 | tr -d \"'
- name: Run tests
run: |
bash -c "$xvfb $test --features test_ws"
bash -c "$xvfb $test --features test-ws"
mv cobertura.xml main_coverage.xml
bash -c "$xvfb $test --all-features"
mv cobertura.xml feature_coverage.xml
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ cargo build
```sh
cargo test
# Include the window system tests (default GIF encoder)
cargo test --features test_ws
cargo test --features test-ws
# Include the window system tests (gifski encoder)
cargo test --all-features # same as `--features test_ws,ski`
cargo test --all-features # same as `--features test-ws,ski`
```

7. Make sure [rustfmt](https://github.com/rust-lang/rustfmt) and [clippy](https://github.com/rust-lang/rust-clippy) don't complain.
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ default = []
# use the gifski encoder
ski = ["gifski", "imgref", "rgb"]
# run window system tests
test_ws = []
test-ws = []

[target.'cfg(windows)'.dependencies]
# Windows dependencies
Expand Down
2 changes: 1 addition & 1 deletion src/util/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl InputState {
}

#[cfg(test)]
#[cfg(feature = "test_ws")]
#[cfg(feature = "test-ws")]
mod tests {
use super::*;
#[test]
Expand Down
2 changes: 1 addition & 1 deletion src/x11/display.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ impl Display {
}

#[cfg(test)]
#[cfg(feature = "test_ws")]
#[cfg(feature = "test-ws")]
mod tests {
use super::*;
use crate::record::settings::RecordTime;
Expand Down
2 changes: 1 addition & 1 deletion src/x11/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ impl Capture for Window {
}

#[cfg(test)]
#[cfg(feature = "test_ws")]
#[cfg(feature = "test-ws")]
mod tests {
use super::*;
use crate::record::settings::RecordSettings;
Expand Down

0 comments on commit ceb7c71

Please sign in to comment.