From bb5b1f7e22ae61b9fbe9438a7e23d7c5a7dde860 Mon Sep 17 00:00:00 2001 From: Ava Gaiety W Date: Wed, 25 Oct 2023 11:55:39 -0500 Subject: [PATCH] Fix image path --- .obsidian/workspace.json | 10 +++++----- ...0-25 at 11.38.06 AM.png => predictable_data.png} | Bin content/tils/predictable_seed_data.md | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename content/images/{Screenshot 2023-10-25 at 11.38.06 AM.png => predictable_data.png} (100%) diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 4674ffb..4191aa3 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -135,12 +135,15 @@ }, "active": "23b55eaa334e54e2", "lastOpenFiles": [ + "_site/tils/predictable_seed_data/index.html", + "_site/tils/predictable_seed_data", + "_site/images/predictable_data.png", "content/tils/kagi_small_web.md", "content/tils/pdf_obsidian_at_page.md", "content/tils/asdf_direnv.md", "content/tils/predictable_seed_data.md", "content/til.md", - "content/images/Screenshot 2023-10-25 at 11.38.06 AM.png", + "content/images/predictable_data.png", "content/tils/always_generated_ecto_boolean.md", "images/Screenshot.md", "images", @@ -159,7 +162,6 @@ "_site/til.xml", "_site/tils/always_generated_ecto_boolean/index.html", "_site/tils/pdf_obsidian_at_page/index.html", - "_site/tils/always_generated_ecto_boolean", "_site/images/til-pdf-page.png", "node_modules/@11ty/eleventy-plugin-syntaxhighlight/README.md", "node_modules/@11ty/eleventy-plugin-syntaxhighlight/test/issue-80/index.md", @@ -178,8 +180,6 @@ "node_modules/async/CHANGELOG.md", "node_modules/minimist/README.md", "node_modules/minimist/CHANGELOG.md", - "node_modules/@11ty/lodash-custom/README.md", - "_site/images/ultimate-dungeon-terrain-3.jpg", - "_site/images/ultimate-dungeon-terrain-2.jpg" + "_site/images/ultimate-dungeon-terrain-3.jpg" ] } \ No newline at end of file diff --git a/content/images/Screenshot 2023-10-25 at 11.38.06 AM.png b/content/images/predictable_data.png similarity index 100% rename from content/images/Screenshot 2023-10-25 at 11.38.06 AM.png rename to content/images/predictable_data.png diff --git a/content/tils/predictable_seed_data.md b/content/tils/predictable_seed_data.md index ac7e25b..77074ea 100644 --- a/content/tils/predictable_seed_data.md +++ b/content/tils/predictable_seed_data.md @@ -4,7 +4,7 @@ title: creating predictable seed data --- A challenge appears when there's a requirement to create a _lot_ of unique seed data. Traditionally the developer community would reach for randomized libraries such as [Chance](https://chancejs.com/index.html) while generating data such as a new user with a random email, name, gender etc. This can lead to hard to automation test code as you cannot guarantee what a user's data will look like other than it's generic shape. One common solution is to write static [test fixtures](https://en.wikipedia.org/wiki/Test_fixture#Software) which come with their own problems such as difficulty scaling, updating, and interdependencies. -![Preview of a table of repeating yet unique and predictable content]("/images/Screenshot 2023-10-25 at 11.38.06 AM.png") +![Preview of a table of repeating yet unique and predictable content](/images/predictable_data.png) Instead, what if we tied randomness to a static value such as an index within a loop (this can also be done with [static seeds](https://chancejs.com/usage/seed.html)). In the following examples we'll utilize a simple loop to create various types of predictable data.