How to let Julia terminal generate ./test/runtests.jl automatically ?
(I am currently using a Julia v1.2.0 on MacOS)
What I've tried:
shell> ls
Manifest.toml Project.toml src
NewtonRootFinding.ipynb SecantRootFinding.ipynb
shell> cat test/runtest.jl
cat: test/runtest.jl: No such file or directory
(v1.2) pkg> status
Status `~/.julia/environments/v1.2/Project.toml`
[7073ff75] IJulia v1.20.0
[438e738f] PyCall v1.91.2
[d330b81b] PyPlot v2.8.2
(Prob1) pkg> activate ./test
Activating new environment at `~/..../Prob1/test/Project.toml`
shell> ls
Manifest.toml Project.toml src
NewtonRootFinding.ipynb SecantRootFinding.ipynb
(test) pkg> status
Status `~/.../Prob1/test/Project.toml`
(empty environment)
(test) pkg> add Test
Resolving package versions...
Updating `~/.../Prob1/test/Project.toml`
[8dfed614] + Test
Updating `~/.../Prob1/test/Manifest.toml`
[2a0f44e3] + Base64
[8ba89e20] + Distributed
[b77e0a4c] + InteractiveUtils
[56ddb016] + Logging
[d6f4376e] + Markdown
[9a3f8284] + Random
[9e88b42a] + Serialization
[6462fe0b] + Sockets
[8dfed614] + Test
(test) pkg> status
Status `~/.../test/Project.toml`
[8dfed614] Test
(test) pkg> activate .
Activating environment at `~/.../Prob1/Project.toml`
(Prob1) pkg> status
Project Prob1 v0.1.0
Status `~/.../Prob1/Project.toml`
[7073ff75] IJulia v1.20.0
[438e738f] PyCall v1.91.2
[d330b81b] PyPlot v2.8.2
[8dfed614] Test
(Prob1) pkg> activate ./test
Activating environment at `~/.../Prob1/test/Project.toml`
shell> cat test/runtests.jl
cat: test/runtests.jl: No such file or directory
shell> tree .
.
├── Manifest.toml
├── NewtonRootFinding.ipynb
├── Project.toml
├── SecantRootFinding.ipynb
├── src
│ └── Prob1.jl
└── test
├── Manifest.toml
└── Project.toml
When I typed tree in shell scripting, there is no runtests.jl Julia file in the ./test directory.
I don't know why.
I followed up the Julia Tutorial: https://julialang.github.io/Pkg.jl/v1/creating-packages/index.html
But it didn't work.