Bug 47707

Summary: Could not find rspec-3.11.0 при тестовом прогоне
Product: Sisyphus Reporter: Evgeny Shesteperov <alimektor>
Component: gem-forking-test-runnerAssignee: majioa <majioa>
Status: CLOSED WONTFIX QA Contact: qa-sisyphus
Severity: normal    
Priority: P5 CC: 3aHyga, cas, imz, led, majioa, mike, nbr, pav, rider, stalker
Version: unstable   
Hardware: x86_64   
OS: Linux   

Description Evgeny Shesteperov 2023-09-23 21:09:47 MSK
Версия

-   gem-forking-test-runner-1.13.0-alt1

Шаги воспроизведения

    # apt-get install -y gem-forking-test-runner forking-test-runner gem-forking-test-runner-doc gem-bump gem-rspec gem-sqlite3 gem-minitest gem-activerecord gem-parallel-tests gem-rspec-core gem-rspec-expectations gem-rspec-mocks gem-activemodel gem-activesupport gem-parallel gem-rspec-support gem-diff-lcs gem-concurrent-ruby gem-i18n gem-tzinfo && \
    git clone https://github.com/grosser/forking_test_runner.git && \
    cd forking_test_runner/spec/dummy && \
    forking-test-runner test/

Ожидаемый результат: прогон тестов, как примере:

    forking-test-runner test/
    Running tests test/another_test.rb test/pollution_test.rb test/simple_test.rb
    ------ >>> test/another_test.rb
    Run options: --seed 19151

    # Running tests:

    .

    Finished tests in 0.002904s, 344.3526 tests/s, 344.3526 assertions/s.

    1 tests, 1 assertions, 0 failures, 0 errors, 0 skips
    ------ <<< test/another_test.rb ---- OK

    ...

    Results:
    test/another_test.rb: OK
    test/pollution_test.rb: OK
    test/simple_test.rb: OK

    9 assertions, 0 errors, 0 failures, 0 skips, 8 tests

Фактический результат:

    Running tests test/another_test.rb test/no_ar_test.rb test/pollution_test.rb test/simple_test.rb
    /root/forking_test_runner/lib/forking_test_runner/version.rb:2: warning: already initialized constant ForkingTestRunner::VERSION
    /usr/lib/ruby/gemie/gems/forking_test_runner-1.13.0/lib/forking_test_runner/version.rb:2: warning: previous definition of VERSION was here
    Could not find rspec-3.11.0, sqlite3-1.4.2, minitest-5.15.0, activerecord-7.0.3, parallel_tests-3.8.1, rspec-core-3.11.0, rspec-expectations-3.11.0, rspec-mocks-3.11.1, activemodel-7.0.3, activesupport-7.0.3, parallel-1.22.1, rspec-support-3.11.0, diff-lcs-1.5.0, concurrent-ruby-1.1.10 in any of the sources
    Run `bundle install` to install missing gems
Comment 1 Малъ Скрылевъ 2024-04-21 03:43:37 MSK
Пакетъ gem-forking-test-runner-devel ставили? 

Въ исходникахъ также нужно удалить Gemfile.lock, чтобы подцѣпились сѵстемные.