Skip to content

Re-enable functional tests as part of CI #348

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

Merged
merged 1 commit into from
Aug 6, 2018
Merged

Re-enable functional tests as part of CI #348

merged 1 commit into from
Aug 6, 2018

Conversation

ericwb
Copy link
Member

@ericwb ericwb commented Jul 24, 2018

Currently our CI is only running the unit tests of Bandit found
in tests/unit/. However, much of the testing of Bandit occurs
as part of the functional tests in tests/functional/* that uses
the examples to test our many of the plugins.

This patch changes the stestr to use a test path in a parent directory
of unit and functional so that both are exercises as part of the CI
run. This will effectively run against each version of Python too.

http://stestr.readthedocs.io/en/latest/MANUAL.html#configuration

This patch also repairs the currently broken functional tests.
Namely:

Fixes Issue #326
Fixes Issue #350
Fixes Issue #351
Fixes Issue #353

Signed-off-by: Eric Brown browne@vmware.com

@ericwb ericwb changed the title Re-eanble functional tests as part of CI Re-enable functional tests as part of CI Aug 2, 2018
Currently our CI is only running the unit tests of Bandit found
in tests/unit/*.  However, much of the testing of Bandit occurs
as part of the functional tests in tests/functional/* that uses
the examples to test our many of the plugins.

This patch changes the stestr to use a test path in a parent directory
of unit and functional so that both are exercises as part of the CI
run. This will effectively run against each version of Python too.

http://stestr.readthedocs.io/en/latest/MANUAL.html#configuration

This patch also repairs the currently broken functional tests.
Namely:

* ast.TryFinally and ast.TryExcept were removed in Python 3.3+
  and replaced with ast.Try - Issue #326
* ast.Call kwargs argument was removed in 3.5 and replaced with
  keywords - Issue #350
* ast.Call starargs argument was removed in 3.5 and replaced with
  Starred in args - Issue #351
* ast.NameConstnat is used instead of ast.Name

Fixes Issue #326
Fixes Issue #350
Fixes Issue #351
Fixes Issue #353

Signed-off-by: Eric Brown <browne@vmware.com>
@ericwb ericwb merged commit 1b11246 into PyCQA:master Aug 6, 2018
@ericwb ericwb deleted the func_tests branch August 6, 2018 20: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.

2 participants