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

More wildcard tests #35

Merged
merged 2 commits into from
Feb 12, 2018
Merged

More wildcard tests #35

merged 2 commits into from
Feb 12, 2018

Conversation

b4hand
Copy link
Contributor

@b4hand b4hand commented Feb 12, 2018

These tests were added as part of the initial investigation into #34, but don't directly address the issue reported there. It turns out the bug is only triggered when the wildcard is in the leading position and only occurs in the Agent, not in the Directive.

I have some separate failing tests that directly address the bug mentioned in #34, but I'm waiting to submit a PR until I have a fix.

@b4hand b4hand changed the title Wildcard tests More wildcard tests Feb 12, 2018
@b4hand
Copy link
Contributor Author

b4hand commented Feb 12, 2018

It's unclear why the tests are failing in Travis. These pass locally and the build in Travis won't show the logs. I'll investigate more later.

@dlecocq
Copy link
Contributor

dlecocq commented Feb 12, 2018

It uses a python module gcovr to check coverage, but:

scripts/travis/before_install.sh: line 5: /home/travis/virtualenv/python3.5/bin/activate: No such file or directory

The .travis.yml lists language: cpp, but also lists 3.5 under python. Off hand I'm not sure what the Travis-recommended solution for this situation is.

Rep::Directive parsed(directive, true);
for (auto example : examples)
{
EXPECT_TRUE(parsed.match(example)) <<

Choose a reason for hiding this comment

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

I'm not a fan of assertions in loops, but this should cover what you want covered.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Normally, I wouldn't do this, but the other tests in this suite were already written the same way.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah... apologies about that :-/

@b4hand b4hand merged commit a2f304e into master Feb 12, 2018
@b4hand b4hand deleted the wildcard-tests branch February 12, 2018 20:57
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.

3 participants