Skip to content

Conversation

@shoekstra
Copy link

In reference to #216, this would be option 2 where default test directory is ignored if test paths are specified using inspec_tests.

Signed-off-by: Stephen Hoekstra <shoekstra@schubergphilis.com>
@zenspider zenspider added the Type: Bug Doesn't work as expected. label Oct 14, 2019
@james-stocks
Copy link

This change looks beneficial but I'd wonder if any users are depending on the current odd behaviour, and would start to see their executed test suite be reduced after this merges.
Maybe we'd need to wait for a version boundary to make the change; or maybe we just need to document it very clearly.

# get local tests and get run list of profiles
(local_suite_files + resolve_config_inspec_tests).compact.uniq
# get run list of profiles or fall back to local tests
return resolve_config_inspec_tests.uniq if resolve_config_inspec_tests

Choose a reason for hiding this comment

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

It looks like resolve_config_inspec_tests will always return an array and the if condition will always be true, making the next line unreachable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Type: Bug Doesn't work as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants