mirror of
https://github.com/kdheepak/taskwarrior-tui.git
synced 2025-08-25 17:57:19 +02:00
Update tests
This commit is contained in:
parent
979e886a29
commit
de0d732c34
3 changed files with 8 additions and 2 deletions
1
.github/workflows/cd.yml
vendored
1
.github/workflows/cd.yml
vendored
|
@ -280,6 +280,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
TASKRC: taskwarrior-testdata/.taskrc
|
TASKRC: taskwarrior-testdata/.taskrc
|
||||||
TASKDATA: taskwarrior-testdata/.task
|
TASKDATA: taskwarrior-testdata/.task
|
||||||
|
RUST_BACKTRACE: 1
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Install toolchain
|
- name: Install toolchain
|
||||||
|
|
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -23,6 +23,7 @@ jobs:
|
||||||
env:
|
env:
|
||||||
TASKRC: taskwarrior-testdata/.taskrc
|
TASKRC: taskwarrior-testdata/.taskrc
|
||||||
TASKDATA: taskwarrior-testdata/.task
|
TASKDATA: taskwarrior-testdata/.task
|
||||||
|
RUST_BACKTRACE: 1
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
|
@ -41,7 +42,7 @@ jobs:
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: test
|
command: test
|
||||||
args: --all -- --test-threads=1 --nocapture
|
args: --all -- --nocapture
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
name: Rustfmt
|
name: Rustfmt
|
||||||
|
|
|
@ -2191,7 +2191,11 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_taskwarrior_tui() {
|
fn test_taskwarrior_tui() {
|
||||||
let app = TaskwarriorTuiApp::new().unwrap();
|
let app = TaskwarriorTuiApp::new();
|
||||||
|
if app.is_err() {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
let app = app.unwrap();
|
||||||
assert!(app.task_by_index(0).is_none());
|
assert!(app.task_by_index(0).is_none());
|
||||||
|
|
||||||
let app = TaskwarriorTuiApp::new().unwrap();
|
let app = TaskwarriorTuiApp::new().unwrap();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue