# How to pass test arguments using the REPL

**URL:** <https://discourse.julialang.org/t/how-to-pass-test-arguments-using-the-repl/45507>\
**Category:** New to Julia\
**Created:** [August 25, 2020, 3:08pm UTC](https://discourse.julialang.org/t/how-to-pass-test-arguments-using-the-repl/45507 "2020-08-25T15:08:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [August 25, 2020, 3:08pm UTC](https://discourse.julialang.org/t/how-to-pass-test-arguments-using-the-repl/45507/1 "2020-08-25T15:08:22Z")

</div>

How do I convert

`julia> Pkg.test("BetaML"; test_args = ["all"]) `

to something like:

`(@v1.5) pkg> test BetaML --test_args = ["all"]`  
(that now returns `ERROR: Unable to parse `--test_args` as a package.`)

?

---

<div class="post-metadata">

**Author:** ![anon37204545](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@anon37204545](https://discourse.julialang.org/u/anon37204545)\
**Post date:** [August 25, 2020, 3:13pm UTC](https://discourse.julialang.org/t/how-to-pass-test-arguments-using-the-repl/45507/2 "2020-08-25T15:13:34Z")

</div>

Which options do you want? As you can see here, test has only the `--coverage` option:

```julia
(@v1.5) pkg> ?test
  test [--coverage] pkg[=uuid] ...

  Run the tests for package pkg. This is done by running the file test/runtests.jl in the package directory. The
  option --coverage can be used to run the tests with coverage enabled. The startup.jl file is disabled during testing
  unless julia is started with --startup-file=yes.

```

---

<div class="post-metadata">

**Author:** ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Post date:** [August 25, 2020, 3:17pm UTC](https://discourse.julialang.org/t/how-to-pass-test-arguments-using-the-repl/45507/3 "2020-08-25T15:17:10Z")

</div>

it is a custom option so that in my package I have a `if "all" in ARGS` condition to run different tests in automatic mode (Trevis) or manual one (see [this merged PR](https://github.com/JuliaLang/Pkg.jl/pull/1226)).

I just can’t find how to do it using the `pkg>` notation…

---

<div class="post-metadata">

**Author:** ![christopher-dG](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/christopher-dg/32/7387_2.png) [@christopher-dG](https://discourse.julialang.org/u/christopher-dG)\
**Post date:** [August 25, 2020, 5:01pm UTC](https://discourse.julialang.org/t/how-to-pass-test-arguments-using-the-repl/45507/4 "2020-08-25T17:01:08Z")

</div>

Currently there is no way to do so with the REPL mode.
