gazebosim / gazebosim/sdformat

Add Console_TEST.cc test that ensures we are getting output

Open
#162 1 comment 0 reactions 0 assignees View on GitHub
enhancement major
Dominant language
C++
Stars
216
Forks
125
Avg merge
1d 14h
Merged PRs (30d)
14

Description

**Original report ([archived issue](https://osrf-migration.github.io/sdformat-gh-pages/#!/osrf/sdformat/issues/162)) by clalancette (Bitbucket: [clalancette](https://bitbucket.org/%7B02b311e1-297d-4232-89c4-5485d0a02911%7D/), GitHub: [clalancette](https://github.com/clalancette)).**

----------------------------------------
@chapulina pointed out that gazebo has a test ensuring that the console is actually printing what we expect, when we expect it. It does this by writing the output to a file, then checking that the file is what we expect. It is implemented here:

https://bitbucket.org/osrf/gazebo/src/45f77842932c95d747d2f20df98aed613792b295/gazebo/common/Console_TEST.cc?fileviewer=file-view-default

https://bitbucket.org/osrf/gazebo/src/45f77842932c95d747d2f20df98aed613792b295/test/util.hh?fileviewer=file-view-default#util.hh-66

We should do a similar thing in sdformat.

Contributor guide

Open the contributing guide

Research direction

Use the linked Gazebo Console_TEST.cc and test/util.hh as reference implementations, then locate sdformat's console output entry points and existing test layout. Add an analogous Console_TEST.cc test that captures console output and verifies the expected contents, using the project's normal test command to confirm it passes.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.