Skip to content

Commit e3c3df5

Browse files
committed
add README.md
1 parent 06b4562 commit e3c3df5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# InlineTest
2+
3+
This package allows defining tests in source files, whose execution is deferred and triggered on demand.
4+
This is useful when one likes to have definitions of methods and corresponding tests close to each other.
5+
This is also useful for code which is not (yet) organized as a package, and where one doesn't want to maintain
6+
a separate set of files for tests.
7+
8+
The `@addtest` macro can be used as a direct replacement for `@testset`, and `runtests()` has to
9+
be called for the tests to be executed. See the docstrings for more details.
10+
When used in a package `MyPackage`, the following can be added to its `test/runtests.jl` file
11+
in order to have `@addtest` tests run as part of the usual package testing process: `runtests(MyPackage)`

0 commit comments

Comments
 (0)