Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

275
Visualizações
Is it better to first split tests by application modules or by test types?

What should be the top level folders split for tests in JavaScript/TypeScript?

E.g. if my application has the following logical modules: AdminPanel, Profile, ProductsListPage. And I have the following Mocha type tests: e2e, smoke, integration, unit.

Should my folder sctructure be:

AdmintPanel:
  e2e
  smoke
  integration
  unit
Profile:
  e2e
  smoke
  integration
  unit
ProductsListPage:
  ...

Or is it better to have the following folders structure:

e2e:
  AdminPanel
  Profile
  ProductsListPage
smoke:
  AdminPanel
  Profile
  ProductsListPage
integration:
  ...
unit:
  ...

My guts tell me that splitting by test types first is better, but I lack any constructive arguments to support my point of view. So, I can not persuade my colleagues to follow the test types first approach. I tried to google best practices on the matter but did not succeed finding anything. So, hopefully someone on SO know the best practices in this respect.

about 4 years ago · Santiago Gelvez
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda