In a maven/gradle project, can we keep source code of automation testing outside src/test/java or src/main/java folders, keeping that code creating a new folder inside project root? If yes, how can we implement it

My understanding is, we can maintain all automation scripts inside of src folder only and access it


Actually, you can indicate the source folder(s) in the gradle configuration file.

This question shows how: https://stackoverflow.com/a/31078965/2252076

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.