Skip to content

Commit

Permalink
Put browser specific tests in ignored list
Browse files Browse the repository at this point in the history
  • Loading branch information
amodm committed Apr 1, 2019
1 parent 6bc0bfa commit c15ed92
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions src/lib.rs
Expand Up @@ -329,7 +329,26 @@ fn test_open_default() {
} }


#[test] #[test]
#[cfg(target_os = "macos")] #[ignore]
fn test_open_browser() { fn test_open_firefox() {
assert!(open_browser(Browser::Firefox, "http://github.com").is_ok()); assert!(open_browser(Browser::Firefox, "http://github.com").is_ok());
} }

#[test]
#[ignore]
fn test_open_chrome() {
assert!(open_browser(Browser::Chrome, "http://github.com").is_ok());
}

#[test]
#[ignore]
#[cfg(target_os = "windows")]
fn test_open_internet_explorer() {
assert!(open_browser(Browser::InternetExplorer, "http://github.com").is_ok());
}

#[test]
#[ignore]
fn test_open_safari() {
assert!(open_browser(Browser::Safari, "http://github.com").is_ok());
}

0 comments on commit c15ed92

Please sign in to comment.