Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
Deprecate docception
Browse files Browse the repository at this point in the history
  • Loading branch information
evnu committed Sep 19, 2023
1 parent 8eb7b8b commit a824cee
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,25 @@

Run doctests on arbitrary markdown files.

## DEPRECATION NOTICE

As of Elixir 1.15, this dependency can be replaced by using the
[doctest_file/1,2](https://hexdocs.pm/ex_unit/1.15/ExUnit.DocTest.html#doctest_file/2) macro
provided by ExUnit itself, see #11 (thanks @axelson for pointing this out). To use this
on a range of files, you can create a simple test module in your `test/` directory:

```elixir
defmodule DocTest do
use ExUnit.Case
# You could also use a wildcard below
for file <- ["README.md"] do
doctest_file(file)
end
end
```

---

## Usage

$ mix docception markdown-files
Expand Down

0 comments on commit a824cee

Please sign in to comment.