Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rspec returns with error for tests in spec/gitlab/cli_spec.rb, but reports success #705

Open
dleidert opened this issue Nov 1, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@dleidert
Copy link

dleidert commented Nov 1, 2024

Hi,

when one runs the tests in spec/gitlab/cli_spec.rb, the respec command returns exit code 1:

rspec spec/gitlab/cli_spec.rb; echo $?

Randomized with seed 32489

Gitlab::CLI
  .run
    when command is users
      shows executed command
      shows users data
    when command is info
      shows environment info
    when command is version
      shows gem version
    when command is help
      shows available actions
    when command is user
      shows user data
      shows executed command
    when command is create_label
      shows executed command
  .start
    when fetching project with namespace/repo
      encodes delimiter
    when command with required fields

Finished in 0.05954 seconds (files took 0.22621 seconds to load)
10 examples, 0 failures

Randomized with seed 32489

1

As far as I can tell, this is caused by the tests "command with required/excluded fields". It seems that rspec stops on the spot and the remaining tests don't run through (there are 12 instead of 10 tests). Still, rspec doesn't report any error. I checked this issue with the latest ruby:3 docker container and I can verify that it is still there.

@NARKOZ
Copy link
Owner

NARKOZ commented Nov 4, 2024

Yes, it is a known problem #686 (comment)

@NARKOZ NARKOZ added the bug Something isn't working label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants