Skip to content

Commit

Permalink
test: ignore tests that use utc locally and only run them in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsan committed Mar 24, 2024
1 parent 36d5f0b commit 4599bae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ fn test_help_command_passes() -> TestResult<()> {
}

#[test]
#[ignore = "Snapshot is only tested in CI, due to time zones being involved"]
fn test_begin_snapshot_passes() -> TestResult<()> {
let dir_str = temp_dir_with("activities.pace.toml")?;

Expand Down Expand Up @@ -105,6 +106,7 @@ fn test_now_no_activities_snapshot_passes() -> TestResult<()> {
}

#[test]
#[ignore = "Snapshot is only tested in CI, due to time zones being involved"]
fn test_now_with_active_activity_snapshot_passes() -> TestResult<()> {
let dir_str = temp_dir_with("activities.pace.toml")?;

Expand All @@ -122,6 +124,7 @@ fn test_now_with_active_activity_snapshot_passes() -> TestResult<()> {
}

#[test]
#[ignore = "Snapshot is only tested in CI, due to time zones being involved"]
fn test_end_with_active_activity_snapshot_passes() -> TestResult<()> {
let dir_str = temp_dir_with("activities.pace.toml")?;

Expand All @@ -139,6 +142,7 @@ fn test_end_with_active_activity_snapshot_passes() -> TestResult<()> {
}

#[test]
#[ignore = "Snapshot is only tested in CI, due to time zones being involved"]
fn test_hold_with_active_activity_snapshot_passes() -> TestResult<()> {
let dir_str = temp_dir_with("activities.pace.toml")?;

Expand All @@ -156,6 +160,7 @@ fn test_hold_with_active_activity_snapshot_passes() -> TestResult<()> {
}

#[test]
#[ignore = "Snapshot is only tested in CI, due to time zones being involved"]
fn test_resume_with_held_activity_snapshot_passes() -> TestResult<()> {
let dir_str = temp_dir_with("activities.pace.toml")?;

Expand Down Expand Up @@ -183,6 +188,7 @@ fn test_resume_with_held_activity_snapshot_passes() -> TestResult<()> {
}

#[test]
#[ignore = "Snapshot is only tested in CI, due to time zones being involved"]
fn test_adjust_activity_snapshot_passes() -> TestResult<()> {
let dir_str = temp_dir_with("activities.pace.toml")?;

Expand Down

0 comments on commit 4599bae

Please sign in to comment.