I'm building a test suite with Cucumber on Java + Maven + jUnit and I need to pass a username and a password to the test suite so it can log in to the application under test.
I don't like the idea of hardcoding the credentials, so I thought maybe I should be passing them as arguments when running the maven command, or maybe I can add them in the pom.xml somewhere and then read them in the code. But I don't know how to do either. Or maybe there's a third option that I haven't thought of...