Skip to content

Commit

Permalink
Added infrastructure to do integration testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
apognu committed Apr 29, 2024
1 parent 71cf19e commit ddec5c1
Show file tree
Hide file tree
Showing 8 changed files with 531 additions and 47 deletions.
126 changes: 91 additions & 35 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,9 @@ tracing = "0.1.40"

[profile.release]
lto = true

[dev-dependencies]
greetd-stub = "0.2.0"
indoc = "2.0.5"
tempfile = "3.10.1"
unicode-width = "0.1.12"
1 change: 1 addition & 0 deletions src/greeter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ impl Greeter {
selected: 0,
};

#[cfg(not(test))]
greeter.parse_options().await;

greeter.sessions = Menu {
Expand Down
Loading

0 comments on commit ddec5c1

Please sign in to comment.