Phoenix/Elixir testing: beyond mix test

You will learn how to:

  • run tests by folder
  • run test by file
  • run a single test in a file
  • run tests using tags for specific modules, describe blocks, and tests
  • run tests in watch mode
  • configure mix commands
  • use convenient code editor extensions

Run tests by folder

Run tests by file

Run a specific test or describe block

Run tests using tags

Using tags with values

Recommended Tags

Skip

Current

Mix aliases

How to run tests only on affected files

Watch files for changes and automatically run tests

Using an extension on your code editor to make running tests easier.

Conclusion

--

--

--

Software Engineer. I create educational content focused on technology for mobile and web applications.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

meet in the midl

Mini Post Mortem on the Season 3 ARG and Open Sourcing the Code!

Solving the Mystery of ifconfig

How to write a complex QueryDSL queries with attribute maps

Learning from Lego: A Step Forward in Modular Web Design

Ruby and Iterations

Add A Custom Info Window to your Google Map Pins in Flutter

Lewagon vs. Udacity

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Brooklin Myers

Brooklin Myers

Software Engineer. I create educational content focused on technology for mobile and web applications.

More from Medium

Jest testing, Node modules and Reflect

Onboarding Tests into Legacy Project

Team Page Redesign — Redefining Corporate Hierarchy

Component visual testing with ViewCompontents and Appraise.qa