java-rest-api icon indicating copy to clipboard operation
java-rest-api copied to clipboard

Fix unit tests when running from the command line on a fresh setup

Open dangg opened this issue 6 years ago • 1 comments

Situation: According to the documentation at https://github.com/messagebird/java-rest-api/blob/master/README.md running the command

mvn test -Ptest -DmessageBirdAccessKey=[your access key] -DmessageBirdMSISDN=[your phone]

should run the tests, however the tests are skipped

The issue seems to come from the configuration under the default profile default <skipTests>false</skipTests>

Before changing this we need to ensure we don't break something else (such as builds)

dangg avatar Aug 07 '19 07:08 dangg

Perhaps it makes sense to split the tests that require DmessageBirdAccessKey and DmessageBirdMSISDN and move these to integration tests. While leaving the pure unit tests in place.

rvt avatar May 08 '20 21:05 rvt