I can save metadata and execute anonymous apex via my Force.com project, so presumably my login credentials and token are working, but I receive an error when trying to run a test suite that I have saved locally and to the server.

Authentication error when trying to run test suite

  • It's possible that Eclipse wiped out your password for whatever reason (I've seen it happen). Check your project's Force.com settings.
    – sfdcfox
    Aug 7, 2018 at 20:46
  • Thanks for suggestion. I turns out my run configuration setting being used wasn't right. It was pointing to a different project with different credentials. Aug 7, 2018 at 20:51

1 Answer 1


My Run Configuration for Apex Test was pointing to a different org. I needed to update it, and the test suite ran fine.

enter image description here

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .