bin: Disable all CLI tests

In light of `cargo test` depending on `rad-tui` being built successfully,
the tests that use them, are ignored for now.
This commit is contained in:
Erik Kundt
2025-08-22 10:48:53 +02:00
parent ccfeba3027
commit 86e34ac2b4
4 changed files with 46 additions and 15 deletions
+12 -2
View File
@@ -27,7 +27,7 @@ List options
--mode <MODE> Set selection mode; see MODE below (default: operation)
--json Return JSON on stderr instead of calling `rad`
--sort-by <field> Sort by `id` or `timestamp` (default: timestamp)
--reverse, -r Reverse the list
@@ -259,7 +259,7 @@ mod cli {
}
#[test]
// #[ignore = "breaks stdout"]
#[ignore = "requires binary"]
fn empty_operation() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -270,6 +270,7 @@ mod cli {
}
#[test]
#[ignore]
fn empty_operation_is_not_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -280,6 +281,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn empty_operation_with_help_is_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -290,6 +292,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn empty_operation_with_help_is_not_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -300,6 +303,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn empty_operation_is_not_forwarded_explicitly() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -310,6 +314,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn list_operation_is_not_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -320,6 +325,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn list_operation_is_not_forwarded_explicitly() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -330,6 +336,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn list_operation_with_help_is_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -340,6 +347,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn list_operation_with_help_is_not_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -350,6 +358,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn list_operation_with_help_is_not_forwarded_reversed() -> Result<(), Box<dyn std::error::Error>>
{
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -361,6 +370,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn unknown_operation_show_is_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
+13 -13
View File
@@ -262,7 +262,7 @@ mod cli {
}
#[test]
#[ignore = "breaks stdout"]
#[ignore = "requires binary"]
fn empty_operation() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -273,7 +273,7 @@ mod cli {
}
#[test]
#[ignore = "breaks stdout"]
#[ignore = "requires binary"]
fn empty_operation_is_not_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -284,7 +284,7 @@ mod cli {
}
#[test]
#[ignore = "breaks stdout"]
#[ignore = "requires binary"]
fn empty_operation_with_help_is_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -295,7 +295,7 @@ mod cli {
}
#[test]
#[ignore = "breaks stdout"]
#[ignore = "requires binary"]
fn empty_operation_with_help_is_not_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -306,7 +306,7 @@ mod cli {
}
#[test]
#[ignore = "breaks stdout"]
#[ignore = "requires binary"]
fn empty_operation_is_not_forwarded_explicitly() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -317,7 +317,7 @@ mod cli {
}
#[test]
#[ignore = "breaks stdout"]
#[ignore = "requires binary"]
fn list_operation_is_not_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -328,7 +328,7 @@ mod cli {
}
#[test]
#[ignore = "breaks stdout"]
#[ignore = "requires binary"]
fn list_operation_is_not_forwarded_explicitly() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -339,7 +339,7 @@ mod cli {
}
#[test]
#[ignore = "breaks stdout"]
#[ignore = "requires binary"]
fn list_operation_with_help_is_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -350,7 +350,7 @@ mod cli {
}
#[test]
#[ignore = "breaks stdout"]
#[ignore = "requires binary"]
fn list_operation_with_help_is_not_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -361,7 +361,7 @@ mod cli {
}
#[test]
#[ignore = "breaks stdout"]
#[ignore = "requires binary"]
fn list_operation_with_help_is_not_forwarded_reversed() -> Result<(), Box<dyn std::error::Error>>
{
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -373,7 +373,7 @@ mod cli {
}
#[test]
#[ignore = "breaks stdout"]
#[ignore = "requires binary"]
fn unknown_operation_show_is_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -386,7 +386,7 @@ mod cli {
}
#[test]
#[ignore = "breaks stdout"]
#[ignore = "requires binary"]
fn unknown_operation_edit_is_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -399,7 +399,7 @@ mod cli {
}
#[test]
#[ignore = "breaks stdout"]
#[ignore = "requires binary"]
fn unknown_operation_is_not_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
+13
View File
@@ -509,6 +509,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn empty_operation() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -519,6 +520,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn empty_operation_is_not_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -529,6 +531,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn empty_operation_with_help_is_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -539,6 +542,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn empty_operation_with_help_is_not_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -549,6 +553,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn empty_operation_is_not_forwarded_explicitly() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -559,6 +564,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn list_operation_is_not_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -569,6 +575,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn list_operation_is_not_forwarded_explicitly() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -579,6 +586,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn list_operation_with_help_is_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -589,6 +597,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn list_operation_with_help_is_not_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -599,6 +608,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn list_operation_with_help_is_not_forwarded_reversed() -> Result<(), Box<dyn std::error::Error>>
{
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -610,6 +620,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn unknown_operation_show_is_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -622,6 +633,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn unknown_operation_edit_is_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -634,6 +646,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn unknown_operation_is_not_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
+8
View File
@@ -249,6 +249,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn can_be_executed() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -258,6 +259,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn empty_command_is_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -267,6 +269,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn empty_command_is_not_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -277,6 +280,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn version_command_is_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -289,6 +293,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn version_command_is_not_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -301,6 +306,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn version_command_prints_json() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -313,6 +319,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn help_command_is_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;
@@ -323,6 +330,7 @@ mod cli {
}
#[test]
#[ignore = "requires binary"]
fn help_command_is_not_forwarded() -> Result<(), Box<dyn std::error::Error>> {
let mut cmd = Command::cargo_bin("rad-tui")?;