ruby-trello icon indicating copy to clipboard operation
ruby-trello copied to clipboard

Setup integration test

Open breiko83 opened this issue 3 years ago • 1 comments

Hello - I'd like to submit a pull request but I'm struggling with running tests.

I followed the instructions on integration_test.rb but at point 3 I get "To access this board, contact a Workspace admin."

# Getting developer/member key
# 1. https://trello.com/1/appKey/generate
# 2. https://trello.com/1/authorize?key=<public_key_here>&name=RubyTrelloIntegrationTests&response_type=token
# See: https://trello.com/board/trello-public-api/4ed7e27fe6abb2517a21383d

My .env file looks like this: DEVELOPER_PUBLIC_KEY=*** DEVELOPER_SECRET=**** MEMBER_TOKEN=****

breiko83 avatar Jul 05 '22 09:07 breiko83

Hi @breiko83, the code in spec/integration/integration_test is outdated and not in use.

You can follow the instructions in README to run all tests with MatrixEval.

If you need to test with your own Trello account, please use below two ENV variables in .env

  • TRELLO_DEVELOPER_PUBLIC_KEY
  • TRELLO_MEMBER_TOKEN

hoppergee avatar Jul 05 '22 17:07 hoppergee