# PR and running Julia test

**URL:** <https://discourse.julialang.org/t/pr-and-running-julia-test/129931>\
**Category:** Internals & Design\
**Tags:** question\
**Created:** [June 16, 2025, 2:10pm UTC](https://discourse.julialang.org/t/pr-and-running-julia-test/129931 "2025-06-16T14:10:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gitboy16](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gitboy16/32/24906_2.png) [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Post date:** [June 16, 2025, 2:10pm UTC](https://discourse.julialang.org/t/pr-and-running-julia-test/129931/1 "2025-06-16T14:10:03Z")

</div>

Hi,  
I am able to build Julia locally on my computer and I would eventually like to submit a PR to Julia.  
But before doing so I would like to add tests and make sure that these tests work.  
Can someone let me know how do I locally:  
-run tests once I have built Julia ?  
-run a specific julia test file which is in the folder test/ of the source code ? As i don’t want to run all tests.  
Thank you

---

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [June 16, 2025, 2:21pm UTC](https://discourse.julialang.org/t/pr-and-running-julia-test/129931/2 "2025-06-16T14:21:11Z")

</div>

That’s great! Just as building Julia is done with `make`, running all tests can be accomplished with `make test`. That’s quite the slog, however, and you can indeed run only a subset. If you’re only interested in running one test file (e.g., `test/file.jl`), you can use `make -C test file`.

Or you can just run `using Test; include("test/file.jl")`. That won’t work for all the test files, but it will for most of them.

Or you can just copy-paste the relevant test sets into your REPL.

All tests will run for all platforms upon submitting the PR.

---

<div class="post-metadata">

**Author:** ![gitboy16](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gitboy16/32/24906_2.png) [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Post date:** [June 16, 2025, 2:38pm UTC](https://discourse.julialang.org/t/pr-and-running-julia-test/129931/3 "2025-06-16T14:38:55Z")

</div>

Thank you, I’ll test that and I will also make a PR with your permission to also document your information as I just found the `make test` part.

---

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [June 16, 2025, 2:44pm UTC](https://discourse.julialang.org/t/pr-and-running-julia-test/129931/4 "2025-06-16T14:44:24Z")

</div>

Absolutely, great idea!

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [June 16, 2025, 3:41pm UTC](https://discourse.julialang.org/t/pr-and-running-julia-test/129931/5 "2025-06-16T15:41:37Z")

</div>

I’d recommend using [`Base.runtest("file")`](https://docs.julialang.org/en/v1/stdlib/Test/#Base.runtests), which optionally allows you to fix the seed (which is quite useful for reproducing stochastic errors). And that’s [already documented](https://docs.julialang.org/en/v1/stdlib/Test/#Testing-Base-Julia).

---

<div class="post-metadata">

**Author:** ![Alec\_Loudenback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alec_loudenback/32/278_2.png) [@Alec\_Loudenback](https://discourse.julialang.org/u/Alec_Loudenback)\
**Post date:** [October 21, 2025, 2:05am UTC](https://discourse.julialang.org/t/pr-and-running-julia-test/129931/6 "2025-10-21T02:05:47Z")

</div>

Here’s a relevant blog post for this question too: [Making a first Julia pull request | Katharine Hyatt](https://kshyatt.github.io/post/firstjuliapr/)
