approvals / approvals/ApprovalTests.cpp

In-lining test output (as opposed to saving in files)

Open
#217 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
339
Forks
55
PR merge metrics
No merged PRs in 30d

Description

Is there any ability to inline the results of the output that you're testing? e.g. expect tests in this blogpost have the result of the tests saved directly in the file itself.

This may be more desirable to see what's happened directly, instead of having a layer of indirection whereby you have to locate the file when you're just scanning to see what those test functions output, or have to delete all the expected output files. AFAICT there's nothing in the document to permit this, am I missing something or might there be an extension to this that allows for that?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No implementation files or tests are named in the issue. Start by reviewing the project documentation and the existing approval-output behavior, then compare it with the linked expect-test example. Done would require a decided, testable scope for inline results rather than file-based output.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.