View Source ex_unit_jumpstart

WORK IN PROGRESS - Do Not Use

This module generates ExUnit style unit test skeletons for an Elixir Project.

  • Generates test files with appropriate jumpstart headers for each module.
  • Ensures that those test modules are in the orthogonal folder relative to the original code module folder structure
  • Adds Unit test skeletons for each module function/arity
  • Updates existing ExUnit test files as new functions are added/modified in the original code

installation

Installation

Add ex_unit_jumpstart to the list of dependencies in mix.exs:

def deps do
  [
    {:ex_unit_jumpstart, "~> 0.0.2"},
  ]
end

configure-the-app

Configure the app

Follow the Phoenix config process for deployment and releases.

initialize-ex_unit_jumpstart-and-generate-files

Initialize ex_unit_jumpstart and generate files

ex_unit_jumpstart generate output files from templates. Run the following to copy the templates into your project. The templating process most common needs via configuration, but you can also check them into your project and make local modifications to handle special needs.

mix ex_unit_jumpstart.init

Generate output files:

# Create ExUnit test template files
mix ex_unit_jumpstart.generate

I am Tim Chambers on on the Elixir Slack, tjchambers on Github. Happy to chat or help with your projects.

Copyright (c) 2023 Timothy Chambers