Social is a twitter(ish) clone to learn to test LiveView app
- Install Elixir, Erlang, and Node versions defined in
.tool-versions
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.setup
- Install Node.js dependencies with
npm install
inside theassets
directory - Run
mix test
to make sure all tests pass. - Run test in watch mode
mix test.watch
- Start Phoenix endpoint with
mix phx.server
Now you can visit Social at localhost:4000
.
- Comments features and unit tests
1-testing-rendering
2-scoping-assertions
3-rendering-component-list
4-testing-live-components
5-testing-live-components-part-2
6-testing-page-interactions
7-testing-live-patch
8-testing-live-navigation
9-testing-form-submission
10-test-change-validation
11-testing-event-driven-UIs
12-testing-displaying-new-posts
13-testing-liking-posts
14-testing-stateful-components
15-testing-broadcasting-likes
16-testing-javascript-hooks-server-side-only
17-complex-assertions-with-floki
18-testing-uploads
19-testing-uploads-direct-to-server
20-testing-uploads-direct-to-cloud
Happy testing! ๐ฅณ