Skip to content

duzzifelipe/credo_testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CredoTesting

CredoTesting gives you a Credo check to ensure all your modules have a corresponding test file.

Usage

Append the check into your .credo.exs file:

[
  # ... other checks
  # ...
  {CredoTesting.Check.Warning.EnsureTestFileExistsForModule, []}
]

You can specify a list of paths to ignore the validation:

[
  # ...
  {CredoTesting.Check.Warning.EnsureTestFileExistsForModule, excluded_paths: ["lib/my_app/application.ex", "lib/my_app_web/openapi_specs"]}
]

Installation

The package can be installed by adding credo_testing to your list of dependencies in mix.exs:

def deps do
  [
    {:credo_testing, "~> 1.0.0"}
  ]
end

About

A library to help ensuring you have tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages