<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:05:46 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CXX-2385] Improve unified test driver error reporting</title>
                <link>https://jira.mongodb.org/browse/CXX-2385</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;The unified test driver could do a better job attaching more information to error messages, enabling developers to much more quickly resolve some issues.&lt;/p&gt;

&lt;p&gt;For example, in &quot;mongocxx/test/spec/unified_tests/runner.cpp&quot;, run_unified_format_tests_in_env_dir() uses CAPTURE() and REQUIRE() as error reporting facilities. This does not provide information about what the error condition /was doing/: looking up an enviornment variable? Trying to find a test_files.txt file? Attaching even a small amount of further information to the thrown exceptions (used by Catch2) would really help.&lt;/p&gt;

&lt;p&gt;This ticket is meant to represent incremental improvement, not a final or complete list of projects.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1896697">CXX-2385</key>
            <summary>Improve unified test driver error reporting</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jesse.williamson@mongodb.com">Jesse Williamson</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Oct 2021 20:54:09 +0000</created>
                <updated>Wed, 8 Feb 2023 19:16:54 +0000</updated>
                                                                            <component>Testing</component>
                    <component>Unified Test Runner</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4168220" author="JIRAUSER1261121" created="Wed, 3 Nov 2021 21:34:50 +0000"  >&lt;p&gt;std::cout is called inside of Catch2 tests in a few places, this should be made &quot;Catch-y&quot;, as the Catch2 library is free to play with the streams.&lt;/p&gt;</comment>
                            <comment id="4157840" author="JIRAUSER1261121" created="Fri, 29 Oct 2021 17:53:20 +0000"  >&lt;p&gt;Here&apos;s another cleanup item: we should probably just filter ignored events before we actually even dispatch (i.e. should_ignore() should&lt;br/&gt;
not need to appear in boilerplate each time).&lt;/p&gt;

&lt;p&gt;void apm_checker::set_command_started(options::apm&amp;amp; apm) {&lt;br/&gt;
    using namespace bsoncxx::builder::basic;&lt;/p&gt;

&lt;p&gt;    apm.on_command_started(&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;amp;&amp;#93;&lt;/span&gt;(const events::command_started_event&amp;amp; event) {&lt;/p&gt;

&lt;p&gt;// JFW: this snippet appears so often that maybe where we dispatch events is actually&lt;br/&gt;
// where we should filter this-- and not even call something we should ignore, to begin&lt;br/&gt;
// with (see all dispatch functions):&lt;br/&gt;
        if (should_ignore(event.command_name())) &lt;/p&gt;
{
            return;
        }</comment>
                            <comment id="4152342" author="JIRAUSER1261121" created="Wed, 27 Oct 2021 17:49:25 +0000"  >&lt;p&gt;While we&apos;re in here, it may be well worth giving some attention to things like the duplicated functions that don&apos;t share quite the same parameters or namespaces (such as lookup_write_concern(), duplicated in a couple places in the project AND ALSO with competing implementations like get_write_concern(), which serves a suspiciously similar purpose); my bet is that the implementations may also be a bit different. It&apos;s a good idea to make them consistent.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CXX-1023</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr6iwa:r</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>