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

Hardhat vs Truffle

Why Migrate to Java 11/12 from Java 8?

AWS Billing : Auto-Adjusting Budgets

5 Steps: Automated Testing of Chatbots in Eclipse

🔧 NoOps Go on Cloud Run

Find K Pairs with Smallest Sum (Leetcode 373/Lintcode 1274)[Solution Illustrated]

SimCity BuildIt Hack 100K SimCash And 2M Simoleons Free!

Some Discord Could Be Good For Healthcare

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

Khipu: Rapid and Sustainable Software Creation in Swift using Engineering and Science Principles

Binary Search — Swift

The Factory Method Design Pattern

Advent of Code 2021: Postmortem