File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change
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) `
You can’t perform that action at this time.
0 commit comments