()
| 24 | |
| 25 | #[test] |
| 26 | fn json_output_test() { |
| 27 | let mut cmd = get_selenium_manager(); |
| 28 | cmd.args(["--browser", "chrome", "--output", "json"]) |
| 29 | .assert() |
| 30 | .success() |
| 31 | .code(0); |
| 32 | |
| 33 | let stdout = get_stdout(&mut cmd); |
| 34 | |
| 35 | let json: JsonOutput = serde_json::from_str(&stdout).unwrap(); |
| 36 | assert!(!json.logs.is_empty()); |
| 37 | |
| 38 | let output_code = json.result.code; |
| 39 | assert_eq!(output_code, 0); |
| 40 | |
| 41 | let driver = Path::new(&json.result.driver_path); |
| 42 | assert!(driver.exists()); |
| 43 | } |
| 44 | |
| 45 | #[test] |
| 46 | fn shell_output_test() { |
nothing calls this directly
no test coverage detected