diff --git a/Cargo.toml b/Cargo.toml index a42033c0..77cc2e7b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,6 +14,7 @@ members = [ "crates/epaint", "examples/*", + "tests/*", "xtask", ] diff --git a/examples/multiple_viewports/README.md b/examples/multiple_viewports/README.md index 1ce0a2b9..3fa67d8a 100644 --- a/examples/multiple_viewports/README.md +++ b/examples/multiple_viewports/README.md @@ -4,4 +4,4 @@ Example how to show multiple viewports (native windows) can be created in `egui` cargo run -p multiple_viewports ``` -For a more advanced example, see [../test_viewports]. +For a more advanced example, see [../../tests/test_viewports]. diff --git a/examples/test_viewports/screenshot.png b/examples/test_viewports/screenshot.png deleted file mode 100644 index 5e8680bb..00000000 Binary files a/examples/test_viewports/screenshot.png and /dev/null differ diff --git a/tests/README.md b/tests/README.md new file mode 100644 index 00000000..ac4d8a18 --- /dev/null +++ b/tests/README.md @@ -0,0 +1,4 @@ +## Test apps +Some application to tests various parts of egui and eframe. + +At some point it would be nice to have automatic screenshot regression tests for these. diff --git a/examples/test_inline_glow_paint/Cargo.toml b/tests/test_inline_glow_paint/Cargo.toml similarity index 100% rename from examples/test_inline_glow_paint/Cargo.toml rename to tests/test_inline_glow_paint/Cargo.toml diff --git a/examples/test_inline_glow_paint/src/main.rs b/tests/test_inline_glow_paint/src/main.rs similarity index 100% rename from examples/test_inline_glow_paint/src/main.rs rename to tests/test_inline_glow_paint/src/main.rs diff --git a/examples/test_viewports/Cargo.toml b/tests/test_viewports/Cargo.toml similarity index 100% rename from examples/test_viewports/Cargo.toml rename to tests/test_viewports/Cargo.toml diff --git a/examples/test_viewports/README.md b/tests/test_viewports/README.md similarity index 52% rename from examples/test_viewports/README.md rename to tests/test_viewports/README.md index 280ffe23..2fa38c80 100644 --- a/examples/test_viewports/README.md +++ b/tests/test_viewports/README.md @@ -1,5 +1,3 @@ This is a test of the viewports feature of eframe and egui, where we show off using multiple windows. -For a simple example, see [`multiple_viewports`](../multiple_viewports). - -![](screenshot.png) +For a simple example, see [`multiple_viewports`](../../examples/multiple_viewports). diff --git a/examples/test_viewports/src/main.rs b/tests/test_viewports/src/main.rs similarity index 100% rename from examples/test_viewports/src/main.rs rename to tests/test_viewports/src/main.rs