Comparing resulting files

Open
#307 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
testing-qa

Research direction

No source file or test entry point is named. Read the proposed ifstream and istream_iterator snippet, then locate the existing test-macro area; done means a reusable macro compares an input file with a gold file using the requested collection check.

Written by the indexing model from the issue text.

Description

It would be nice and cozy to have a macro for file result comparision.

A potential body for the file comparision test macro:

std::ifstream ifs1(TEST_SRC_DIR "input/file/path");
std::ifstream ifs2(TEST_SRC_DIR "gold/file/path");

std::istream_iterator<char> b1(ifs1), b2(ifs2), e;

BOOST_CHECK_EQUAL_COLLECTIONS(b1, e, b2, e);
Dominant language
C++
Stars
213
Forks
149
Avg merge
18h 17m
Merged PRs (30d)
2

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.

More from boostorg/test

All issues in boostorg/test

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.