4
respostas

erro ao subir a aplicação no heroku

sempre que eu tento subir a aplicação no heroku da um erro do heroku tentar ler as classes de test e não conseguir:

remote:        [INFO] -------------------------------------------------------------
remote:        [ERROR] COMPILATION ERROR :
remote:        [INFO] -------------------------------------------------------------
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/daos/ProdutoDAOTest.java:[6,29] package org.junit.jupiter.api does not exist
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/daos/ProdutoDAOTest.java:[7,29] package org.junit.jupiter.api does not exist
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/daos/ProdutoDAOTest.java:[8,39] package org.junit.jupiter.api.extension does not exist
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/daos/ProdutoDAOTest.java:[10,40] package org.springframework.test.context does not exist
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/daos/ProdutoDAOTest.java:[11,40] package org.springframework.test.context does not exist
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/daos/ProdutoDAOTest.java:[12,54] package org.springframework.test.context.junit.jupiter does not exist
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/daos/ProdutoDAOTest.java:[21,2] cannot find symbol
remote:          symbol: class ExtendWith
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/daos/ProdutoDAOTest.java:[22,2] cannot find symbol
remote:          symbol: class ContextConfiguration
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/daos/ProdutoDAOTest.java:[23,2] cannot find symbol
remote:          symbol: class ActiveProfiles
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/controllers/ProdutosControllerTest.java:[5,29] package org.junit.jupiter.api does not exist
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/controllers/ProdutosControllerTest.java:[6,39] package org.junit.jupiter.api.extension does not exist
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/controllers/ProdutosControllerTest.java:[8,61] package org.springframework.security.test.web.servlet.request does not exist
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/controllers/ProdutosControllerTest.java:[9,40] package org.springframework.test.context does not exist
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/controllers/ProdutosControllerTest.java:[10,40] package org.springframework.test.context does not exist
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/controllers/ProdutosControllerTest.java:[11,54] package org.springframework.test.context.junit.jupiter does not exist
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/controllers/ProdutosControllerTest.java:[12,44] package org.springframework.test.context.web does not exist
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/controllers/ProdutosControllerTest.java:[13,44] package org.springframework.test.web.servlet does not exist
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/controllers/ProdutosControllerTest.java:[14,52] package org.springframework.test.web.servlet.request does not exist
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/controllers/ProdutosControllerTest.java:[15,51] package org.springframework.test.web.servlet.result does not exist
remote:        [ERROR] /tmp/build_175bf410d65ae613578c25b5a27bd172/src/test/java/br/com/casadocodigo/loja/controllers/ProdutosControllerTest.java:[16,50] package org.springframework.test.web.servlet.setup does not exist
...
4 respostas

Fala ai Vitor, de boa ?

Cara eu acho que você tá usando o Junit 5, e por algum motivo x o heroku não conseguiu configurar no build.

sim tou com o JUnit 5

Acho que localmente está, contudo no heroku não tem.

Seu projeto é maven ?

Sim, é. É que todas as dependências estão atualizadas