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

Testing | Figure out why shellspec Ignores all but First Line of function doc #58

Open
1 task done
ReedClanton opened this issue Apr 28, 2023 · 0 comments
Open
1 task done
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@ReedClanton
Copy link
Owner

Description

When a function that's being tested by shellspec returns it's doc, shellspec only sees the first line of the doc. This is the case regardless of what shell the test is run in. When one manually does the same thing the test does, the entire doc is returned. The command that's used to save the doc in a variable, the variable that's printed to std, is cat. shellspec is set to pass through cat commands so it's not that. The same behavior occurs regardless of if the CUT returns the doc with echo or printf.

High Level Solution Description

Determine how to fix this, either by contributing to the shellspec project, updating CUT, changing how the tests are run, or some other work around I haven't thought of. It's not nessirary to impliment the fix that's found, however, it does seem like a good idea to implement the fix in one place. That way it can be verified that the fix works both locally and in the pipeline.

Alternative Solution(s)

None.

Blocked By

  • None

Blocking

  • None

Related Issue(s)

Additional Context

At time of writing, there is at least one test that this affects. It's marked with this issue's ID, so finding it, and all others, should be easy.

@ReedClanton ReedClanton added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant