From d09d5d45ae4697eef277dfe30756b91c7d802a94 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 3 Dec 2024 22:03:06 +0100 Subject: Draft `iced_test` crate and test `todos` example --- test/Cargo.toml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/Cargo.toml (limited to 'test/Cargo.toml') diff --git a/test/Cargo.toml b/test/Cargo.toml new file mode 100644 index 00000000..c09a196d --- /dev/null +++ b/test/Cargo.toml @@ -0,0 +1,21 @@ +[package] +name = "iced_test" +version.workspace = true +authors.workspace = true +edition.workspace = true +license.workspace = true +repository.workspace = true +homepage.workspace = true +categories.workspace = true +keywords.workspace = true +rust-version.workspace = true + +[lints] +workspace = true + +[dependencies] +iced_runtime.workspace = true +iced_tiny_skia.workspace = true + +iced_renderer.workspace = true +iced_renderer.features = ["tiny-skia"] -- cgit From 1aeb317f2dbfb63215e6226073e67878ffa6503b Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Fri, 6 Dec 2024 04:06:41 +0100 Subject: Add image and hash snapshot-based testing to `iced_test` --- test/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/Cargo.toml') diff --git a/test/Cargo.toml b/test/Cargo.toml index c09a196d..f6f4f45a 100644 --- a/test/Cargo.toml +++ b/test/Cargo.toml @@ -19,3 +19,6 @@ iced_tiny_skia.workspace = true iced_renderer.workspace = true iced_renderer.features = ["tiny-skia"] + +png.workspace = true +sha2.workspace = true -- cgit From 6572909ab5b004176f6d261b67b4caa99f1f54bb Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 12 Dec 2024 03:14:40 +0100 Subject: Embed and use Fira Sans as default font when testing --- test/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/Cargo.toml') diff --git a/test/Cargo.toml b/test/Cargo.toml index f6f4f45a..c63a9e14 100644 --- a/test/Cargo.toml +++ b/test/Cargo.toml @@ -18,7 +18,7 @@ iced_runtime.workspace = true iced_tiny_skia.workspace = true iced_renderer.workspace = true -iced_renderer.features = ["tiny-skia"] +iced_renderer.features = ["tiny-skia", "fira-sans"] png.workspace = true sha2.workspace = true -- cgit From 2cf4abf25bb5702635c19a22353399db8cef7be3 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 14 Dec 2024 03:49:24 +0100 Subject: Support custom renderers in `iced_test` through `renderer::Headless` trait --- test/Cargo.toml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/Cargo.toml') diff --git a/test/Cargo.toml b/test/Cargo.toml index c63a9e14..ff6cb38a 100644 --- a/test/Cargo.toml +++ b/test/Cargo.toml @@ -15,10 +15,9 @@ workspace = true [dependencies] iced_runtime.workspace = true -iced_tiny_skia.workspace = true iced_renderer.workspace = true -iced_renderer.features = ["tiny-skia", "fira-sans"] +iced_renderer.features = ["fira-sans"] png.workspace = true sha2.workspace = true -- cgit From 2f98a7e2032715409891e6d2c9f8529cfed59569 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 17 Dec 2024 02:17:07 +0100 Subject: Append `env::consts::OS` to snapshot filenames --- test/Cargo.toml | 2 -- 1 file changed, 2 deletions(-) (limited to 'test/Cargo.toml') diff --git a/test/Cargo.toml b/test/Cargo.toml index ff6cb38a..47e9be11 100644 --- a/test/Cargo.toml +++ b/test/Cargo.toml @@ -15,9 +15,7 @@ workspace = true [dependencies] iced_runtime.workspace = true - iced_renderer.workspace = true -iced_renderer.features = ["fira-sans"] png.workspace = true sha2.workspace = true -- cgit From 41a822c6fb6dd15c9e2246a6f0d136d83c6c7d00 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 17 Dec 2024 02:27:13 +0100 Subject: Use proper hash for `creates_a_new_task` snapshot --- test/Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/Cargo.toml') diff --git a/test/Cargo.toml b/test/Cargo.toml index 47e9be11..ff6cb38a 100644 --- a/test/Cargo.toml +++ b/test/Cargo.toml @@ -15,7 +15,9 @@ workspace = true [dependencies] iced_runtime.workspace = true + iced_renderer.workspace = true +iced_renderer.features = ["fira-sans"] png.workspace = true sha2.workspace = true -- cgit From 5220a064c5054e872fd2f8922aa83838bf066949 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Tue, 17 Dec 2024 04:13:19 +0100 Subject: Write documentation for `iced_test` --- test/Cargo.toml | 1 + 1 file changed, 1 insertion(+) (limited to 'test/Cargo.toml') diff --git a/test/Cargo.toml b/test/Cargo.toml index ff6cb38a..2dd35e7f 100644 --- a/test/Cargo.toml +++ b/test/Cargo.toml @@ -21,3 +21,4 @@ iced_renderer.features = ["fira-sans"] png.workspace = true sha2.workspace = true +thiserror.workspace = true -- cgit