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

use EXPECT_RANGE_EQ in cli test #16

Merged
merged 3 commits into from
May 20, 2020
Merged

use EXPECT_RANGE_EQ in cli test #16

merged 3 commits into from
May 20, 2020

Conversation

joergi-w
Copy link
Member

This PR updates the SeqAn3 submodule and applies the EXPECT_RANGE_EQ macro in a command line interface test.

This PR closes seqan/product_backlog#4.

@joergi-w
Copy link
Member Author

I have updated also the Readme file.

An owner of "seqan" needs to enable Travis access for this repository, before we can see CI results.

@joergi-w joergi-w requested a review from MitraDarja May 19, 2020 17:21
Copy link
Contributor

@MitraDarja MitraDarja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just two questions, otherwise it LGTM.

@@ -39,6 +39,7 @@ macro (add_app_test test_filename test_alternative)
# Add the test to its general target (cli or api).
if (${test_alternative} STREQUAL "CLI_TEST")
add_dependencies (${target} "${PROJECT_NAME}") # cli test needs the application executable
target_include_directories(${target} PUBLIC "${SEQAN3_INCLUDE_DIR}/../test/include")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a question: Why don't we have the source directory as a variable? Would make the path a bit more readable.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this suggestion; I found a solution with SEQAN3_CLONE_DIR which makes it indeed better readable.

@@ -6,6 +6,8 @@
#include <sstream> // ostringstream
#include <string> // strings

#include <seqan3/test/expect_range_eq.hpp> // EXPECT_RANGE_EQ macro
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we mention why this is a useful macro, so that other people are more likely to use it?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good point!

@joergi-w joergi-w requested a review from MitraDarja May 20, 2020 08:37
@joergi-w joergi-w merged commit 75c970b into master May 20, 2020
@joergi-w joergi-w deleted the test_use_range_macro branch May 20, 2020 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compare files outputted by the application record wise with some gold standard file.
2 participants