Skip to content

Commit

Permalink
Add a sample test boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
Alecaddd committed Sep 20, 2024
1 parent d9f05ec commit 50b8e58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
paths:
- "*.json"
pull_request:
# branches: ["main"]
branches: ["main"]
paths:
- "*.json"
types:
Expand Down
9 changes: 9 additions & 0 deletions src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,3 +133,12 @@ impl AppWindow {
}
}
}

#[cfg(test)]
mod test {
#[gtk::test]
fn test_main_window() {
let success: bool = true;
assert!(success);
}
}

0 comments on commit 50b8e58

Please sign in to comment.