From 1636477d5023d9bfc5ad4359720c964282132543 Mon Sep 17 00:00:00 2001 From: nelsonic Date: Sun, 13 Mar 2022 17:23:35 +0000 Subject: [PATCH] set preferred_cli_env for mix coveralls.json task to :test #53 --- README.md | 15 ++++++--------- mix.exs | 3 ++- tutorial.md | 40 +++++++++++++++++++++++++++++++++++++--- 3 files changed, 45 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 5322ce4..6af3475 100644 --- a/README.md +++ b/README.md @@ -66,17 +66,15 @@ to add their own features. # What? 📱 🛌 -This App is the simplest possible **sleep tracker** -(_other than using a notepad + pen -or a notes App on your phone ..._) - +This App is the simplest possible **sleep tracker**. + A **_deliberately_ basic** version of an App is commonly referred to as Minimum Viable Product ("MVP") which means it has the minimum features to be useful, -but leaves a lot enhancements out. - +but leaves the possible enhancements out. If you think of a feature/improvement, _please_ -[**open an issue**!](https://github.com/dwyl/sleep/issues).
+[**open an issue**!](https://github.com/dwyl/sleep/issues). **Contributions/ideas** are **_always_ welcome** and we're delighted to extend this in response to feedback! @@ -262,8 +260,7 @@ and you have a reference implementation that you _know_ works on your computer, it's time to write some **`code`** -## `GOTO:` -[`tutorial.md`](https://github.com/dwyl/sleep/blob/main/tutorial.md) +## `GOTO:` [`tutorial.md`](https://github.com/dwyl/sleep/blob/main/tutorial.md)
diff --git a/mix.exs b/mix.exs index ad63093..133109a 100644 --- a/mix.exs +++ b/mix.exs @@ -17,7 +17,8 @@ defmodule App.MixProject do coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, - "coveralls.html": :test + "coveralls.html": :test, + "coveralls.json": :test ], package: package(), description: "Turnkey Auth Auth Application" diff --git a/tutorial.md b/tutorial.md index 35a602c..adbe737 100644 --- a/tutorial.md +++ b/tutorial.md @@ -305,18 +305,21 @@ you should see something similar to this: image +The App doesn't _do_ anything yet, +but at least we know it _renders_. +
## 7. Update Tests -If you attempt to run the tests in the project now: +Following the changes we made above, +if you attempt to run the tests in the project now: ```sh mix test ``` -One of the tests will fail: - +You will see that one of the tests fail: ```elixir Generated app app @@ -332,6 +335,13 @@ Generated app app test/app_web/controllers/page_controller_test.exs:6: (test) ``` +It's pretty obvious _why_ the test is failing ... +we removed the "**Welcome to Phoenix!**" text from the template. + +Let's _fix_ the failing test. + +### 7.1 Rename the Test File + First given that we won't be using `controllers` in this App, rename the test folder from: @@ -352,6 +362,8 @@ e.g: mv test/app_web/live/page_controller_test.exs test/app_web/live/app_live_test.exs ``` +### 7.2 Update the Test + Then open the `test/app_web/live/app_live_test.exs` file and @@ -369,6 +381,8 @@ defmodule AppWeb.AppLiveTest do end ``` +### 7.3 Re-run the Tests + Now when you re-run the tests: ```sh @@ -387,5 +401,25 @@ Randomized with seed 575721 ``` +## 8. Create Database Schema + +We could work on the interface first +and then figure out how to store data + + +## X. Start a Sleep Timer + +## X. Stop a Running Sleep Timer + +## X. Display Past Timers + + + + +## X. Authentication + + + + [![HitCount](http://hits.dwyl.com/dwyl/sleep-tutorial.svg?style=flat-square)](http://hits.dwyl.com/dwyl/sleep) \ No newline at end of file