-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: use ReTest * fix: not use include in @testset * Remove seed for retest * Try a different seed * Add top level @testset to avoid scope issues * fix @testset scope * move @testset into turing/runtests.jl * pass h explictly instead of using global one * only use ReTest for AHMC part not Turing * Fix Comonicon issue * Fix variable scope issue * Move Pkg to correct place * Put test_show into a @testset * Remove skip test @info as is handled by ReTest now * Move test skip inside @testset for better summary * Improve test summary * Improve @testset names * Fix typo * Fix variable scope * Use local variable instead of global * Improve test summary * Add verbose=false to demo tests * Add README for tests * Fix Markdown syntax * Disable CI for julia-nightly on Windows Co-authored-by: Kai Xu <[email protected]>
- Loading branch information
Showing
18 changed files
with
618 additions
and
594 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# How to run tests locally | ||
|
||
Assuming you are in the local folder of the root of AdvancedHMC.jl, | ||
you can use the following command to run all tests locally: | ||
|
||
``` sh | ||
julia --project=@. -e 'using Pkg; Pkg.test(; test_args=ARGS)' | ||
``` | ||
If you are in a different folder, | ||
you can change `@.` to the root of AdvancedHMC.jl. | ||
|
||
Further, the testing is set up to accept positional arguments to run a subset of tests by filtering. | ||
For example, below runs only tests for `Adaptation`: | ||
|
||
``` sh | ||
julia --project=@. -e 'using Pkg; Pkg.test(; test_args=ARGS)' "Adaptation" | ||
``` | ||
|
||
See [PR #287](https://github.com/TuringLang/AdvancedHMC.jl/pull/287) that introduces this functionality via [ReTest.jl](https://juliatesting.github.io/ReTest.jl/stable/) for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.