C
C
Clean Coder2020-10-02 00:00:56
Java
Clean Coder, 2020-10-02 00:00:56

Where is it better to put stubs and mocks - along with source codes or with unit tests?

1 option

-main
--java
---Class
---ClassMock

2 option

-test
--java
---TestSuite
---ClassMock

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Daniil Demidko, 2020-10-02
@HustleCoder

There is a good rule, everything related to tests, resources, stubs, mocks, code - should be stored in a test package so that it does not fall into the production build

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question