-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BB-248] Improving test coverage (#249)
* tfautomv invoke test * configure_accounts_profiles tests * _extract_credentials happy path test * trigger also on push * separate unit from integration tests * get mfa serial + get organization accounts tests * backup_file + profile_is_configured tests * configure_credentials tests * _get_management_account_id + _credentials_are_valid tests * configure_profile + _update_account_ids tests * splitting test_configure_accounts_profiles test + comments * more comments + remove non useful tests * comments + clean up
- Loading branch information
Showing
5 changed files
with
276 additions
and
39 deletions.
There are no files selected for viewing
21 changes: 1 addition & 20 deletions
21
.../workflows/tests-unit-and-integration.yml → .github/workflows/tests-integration.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Tests | Unit | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
unit_tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: install_requirements | ||
run: | | ||
echo "[INFO] Installing requirements..." | ||
pip install -r dev-requirements.txt | ||
- name: run_unit_tests | ||
run: | | ||
echo "[INFO] Running unit tests and generate coverage report" | ||
pytest --verbose | ||
shell: bash | ||
|
||
- name: Report Coveralls | ||
uses: coverallsapp/github-action@v2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.