Skip to content

Commit

Permalink
tests: ignore hyprland tests by default
Browse files Browse the repository at this point in the history
These can be ran with cargo test -- --ignored when working in a Hyprland
environment.
  • Loading branch information
donovanglover committed Oct 17, 2024
1 parent 7d7c90a commit bc4ed54
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/queries/get_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ pub fn get_version() -> anyhow::Result<String> {
#[cfg(test)]
mod tests {
#[test]
#[ignore]
fn get_version() {
let res = super::get_version().unwrap();
assert_eq!(res, "0.44.1");
Expand Down
1 change: 1 addition & 0 deletions src/queries/is_single.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub fn is_single() -> bool {
#[cfg(test)]
mod tests {
#[test]
#[ignore]
fn is_single() {
let res = super::is_single();
assert_eq!(res, true);
Expand Down
1 change: 1 addition & 0 deletions src/queries/is_special.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ pub fn is_special() -> bool {
#[cfg(test)]
mod tests {
#[test]
#[ignore]
fn is_special() {
let res = super::is_special();
assert_eq!(res, true);
Expand Down
1 change: 1 addition & 0 deletions src/ui/hyprland_version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ pub fn hyprland_version(minimum_version: &str) -> anyhow::Result<bool> {
#[cfg(test)]
mod tests {
#[test]
#[ignore]
fn hyprland_version() {
let res = super::hyprland_version("0.44.1").unwrap();
assert_eq!(res, true);
Expand Down

0 comments on commit bc4ed54

Please sign in to comment.