You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge pull request #87 from ProjectTorreyPines/ind_tests
Individual testing without using ArgParse
Now to run individual tests, one can use
```
julia --project test/test.jl help
```
to see the options.
`test/runtests.jl` can not be called directly from outside now, it must be called through `Pkg.test()`.
It directly uses `ARGS` now, so we do not need to use ArgParse anymore.
`test/test.jl` uses Standard julia libraries only, so it can be called from project environment directly.
Copy file name to clipboardExpand all lines: README.md
+53Lines changed: 53 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,3 +15,56 @@ For installation:
15
15
using Pkg
16
16
Pkg.add("IMASggd")
17
17
```
18
+
19
+
## For developers
20
+
21
+
If you are contributing to this project, you would need to install [dvc](https://dvc.org/) to fetch sample files for testing. Once installed, please configure your ssh so that you can ssh into omega tunneling through cybele without requiring to enter password. This is optional but will make it much easier for you.
22
+
23
+
Once you have completed above steps, inside the git repo, simply do:
24
+
```bash
25
+
dvc pull
26
+
```
27
+
28
+
This would download the sample files in the `samples` directory. Then to run tests, you would first need to instantiate the project:
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
41
+
|__/ |
42
+
43
+
julia> ]
44
+
```
45
+
Then type:
46
+
```julia
47
+
(IMASggd) pkg> instantiate
48
+
```
49
+
Once the package has been instantiated, you can run the tests using:
50
+
```julia
51
+
(IMASggd) pkg> test
52
+
```
53
+
This would run all the tests though. To run specific tests, you can do following from the command line to see help options (this works after you ahve instantiated the project like mentioned above):
54
+
```bash
55
+
% julia --project test/test.jl help
56
+
Usage (from inside IMASggd.jl):
57
+
julia --project test/test.jl [interp] [projection] [in] [subset_tools] [types] [h] [help]
0 commit comments