# Pkg test - ERROR: Cannot \`develop\` package with the same name or uuid as the project

**URL:** <https://discourse.julialang.org/t/pkg-test-error-cannot-develop-package-with-the-same-name-or-uuid-as-the-project/42776>\
**Category:** New to Julia\
**Created:** [July 9, 2020, 8:03am UTC](https://discourse.julialang.org/t/pkg-test-error-cannot-develop-package-with-the-same-name-or-uuid-as-the-project/42776 "2020-07-09T08:03:02Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rbontekoe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rbontekoe/32/5981_2.png) [@rbontekoe](https://discourse.julialang.org/u/rbontekoe)\
**Post date:** [July 9, 2020, 8:03am UTC](https://discourse.julialang.org/t/pkg-test-error-cannot-develop-package-with-the-same-name-or-uuid-as-the-project/42776/1 "2020-07-09T08:03:02Z")

</div>

In my package `AppliAR,` I have defined tests in runtests.jl. The tests run successfully.

When I add AppliAR (#Internals & Design) to another project and run `test AppliAR` I get the message: ERROR: Cannot `develop` package with the same name or uuid as the project.

The sub-modules are Domain, API, Infrastructure, and Report. I am using Julia 1.3.1.

What am I doing wrong?

### Run test from another project

```julia-auto
(AppliMaster) pkg> st
    Status `~/julia-projects/tc/AppliMaster/Project.toml`
  [1e47966d] AppliAR v0.3.4 #dev (https://github.com/rbontekoe/AppliAR.jl)
  [69311175] AppliGeneralLedger v0.1.0
  [c1345d04] AppliSales v0.1.2
  [df971d30] Rocket v1.2.4

(AppliMaster) pkg> test AppliAR
   Testing AppliAR
ERROR: Cannot `develop` package with the same name or uuid as the project

```

### runtest.jl top

```julia-auto
using AppliAR

using Test
using AppliSales
using AppliGeneralLedger
using Dates

# TEST MODEL
@testset "Orders" begin
    orders = AppliSales.process()
    @test length(orders) == 3
    @test orders[1].org.name == "Scrooge Investment Bank"
    @test orders[1].training.name == "Learn Smiling"
end

```

---

<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:** [July 9, 2020, 9:18am UTC](https://discourse.julialang.org/t/pkg-test-error-cannot-develop-package-with-the-same-name-or-uuid-as-the-project/42776/2 "2020-07-09T09:18:37Z")

</div>

When you activate the project of a pack, just use `test` without arguments to run the tests

---

<div class="post-metadata">

**Author:** ![rbontekoe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rbontekoe/32/5981_2.png) [@rbontekoe](https://discourse.julialang.org/u/rbontekoe)\
**Post date:** [July 9, 2020, 9:37am UTC](https://discourse.julialang.org/t/pkg-test-error-cannot-develop-package-with-the-same-name-or-uuid-as-the-project/42776/3 "2020-07-09T09:37:44Z")

</div>

Thank you, it gave me more information: ERROR: trying to test unnamed project - This is correct, AppliMaster is unnamed.

BTW: @giordano, how can I convert an unnamed project into a named project?

```julia
(v1.3) pkg> activate .
Activating environment at `~/julia-projects/tc/AppliMaster/Project.toml`

(AppliMaster) pkg> test
ERROR: trying to test unnamed project

```

---

<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:** [July 9, 2020, 9:46am UTC](https://discourse.julialang.org/t/pkg-test-error-cannot-develop-package-with-the-same-name-or-uuid-as-the-project/42776/4 "2020-07-09T09:46:26Z")

</div>

The `Project.toml` file should have a `name` key, like this:  
[https://github.com/JuliaLang/Pkg.jl/blob/a8cc6d670ebe55002c5d5efb7fb19315c0c1cd55/Project.toml#L1](https://github.com/JuliaLang/Pkg.jl/blob/a8cc6d670ebe55002c5d5efb7fb19315c0c1cd55/Project.toml#L1)

---

<div class="post-metadata">

**Author:** ![rbontekoe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rbontekoe/32/5981_2.png) [@rbontekoe](https://discourse.julialang.org/u/rbontekoe)\
**Post date:** [July 9, 2020, 9:52am UTC](https://discourse.julialang.org/t/pkg-test-error-cannot-develop-package-with-the-same-name-or-uuid-as-the-project/42776/5 "2020-07-09T09:52:17Z")

</div>

@giordano, I am aware of it, but how do I generate a new uuid?

---

<div class="post-metadata">

**Author:** ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Post date:** [July 9, 2020, 9:53am UTC](https://discourse.julialang.org/t/pkg-test-error-cannot-develop-package-with-the-same-name-or-uuid-as-the-project/42776/6 "2020-07-09T09:53:04Z")

</div>

```julia
julia> using UUIDs

julia> uuid4()
UUID("3f0e5f6a-4f8c-4cce-b8da-6540b009afd0")

```

---

<div class="post-metadata">

**Author:** ![rbontekoe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rbontekoe/32/5981_2.png) [@rbontekoe](https://discourse.julialang.org/u/rbontekoe)\
**Post date:** [July 9, 2020, 10:14am UTC](https://discourse.julialang.org/t/pkg-test-error-cannot-develop-package-with-the-same-name-or-uuid-as-the-project/42776/7 "2020-07-09T10:14:42Z")

</div>

Every day I learn more and more. Thank you @GunnarFarneback.
