Rails rspec test fail: Exited with code 1

rspec

#1

I have a rails project, and I do rspec feature test.
But ı take this error Exited with code 1

config.yml

version: 2
jobs:
  build:
    docker:
      # specify the version you desire here
       - image: circleci/ruby:2.4.3-node-browsers
       - image: redis
       - image: circleci/postgres
         environment:
          - POSTGRES_USER=oyunsatis
          - POSTGRES_DB=oyunsatis_test
          - POSTGRES_PASSWORD="123123"
      
      # Specify service dependencies here if necessary
      # CircleCI maintains a library of pre-built images
      # documented at https://circleci.com/docs/2.0/circleci-images/

    working_directory: ~/repo

    steps:
      - checkout

      # Download and cache dependencies
      - restore_cache:
          keys:
          - v1-dependencies-{{ checksum "Gemfile.lock" }}
          # fallback to using the latest cache if no exact match is found
          - v1-dependencies-
      
      - run: sudo apt-get install qt4-dev-tools libqt4-dev libqt4-core libqt4-gui
      
      - run:
          name: Update Chromedriver
          command: |
            wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
            sudo sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
            sudo apt-get update 
            sudo apt-get install google-chrome-stable

      - run:
          name: install dependencies
          command: |
            bundle install --jobs=4 --retry=3 --path vendor/bundle

      - save_cache:
          paths:
            - ./vendor/bundle
          key: v1-dependencies-{{ checksum "Gemfile.lock" }}
        
      # Database setup
      # - run: bundle exec rake vt:reset
      - run: bundle exec rake vt:reset RAILS_ENV=test


      - run:
          name: Css & Js Precompile
          command: |
            rails assets:precompile

      # run tests!
      - run:
          name: run features test
          command: |
            gem install rspec
            mkdir /tmp/test-results

            bundle exec rspec spec/features/ --format progress \
                            --format RspecJunitFormatter \
                            --out /tmp/test-results/rspec.xml \
                            --format progress


      # collect reports
      - store_test_results:
          path: /tmp/test-results
      - store_artifacts:
          path: /tmp/test-results
          destination: test-results
      - store_artifacts:
          path: /tmp

workflows:
  version: 2
  build:
    jobs:
      - build

Thanks for answers


#2

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.