Skip to content

Commit

Permalink
feat: add integration tests for users api AP-1239 (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanttV authored Sep 18, 2024
1 parent f99a6f7 commit 9143370
Show file tree
Hide file tree
Showing 23 changed files with 827 additions and 168 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
tutor_version: ["<17.0.0", "<18.0.0", "<19.0.0"]
tutor_version: ['<18.0.0', '<19.0.0']
steps:
- uses: actions/checkout@v4
with:
path: eox-core
- uses: eduNEXT/integration-test-in-tutor@main
- name: Run Integration Tests
uses: eduNEXT/integration-test-in-tutor@mjh/run-integration-tests-outside-container
with:
tutor_version: ${{ matrix.tutor_version }}
app_name: "eox-core"
shell_file_to_run: "eox_core/tests/tutor/integration.sh"
app_name: 'eox-core'
openedx_extra_pip_requeriments: 'eox-tenant'
shell_file_to_run: 'scripts/execute_integration_tests.sh'
fixtures_file: 'fixtures/initial_data.json'
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ Please do not update the unreleased notes.

<!-- Content should be placed here -->

## [v10.6.0](https://github.com/eduNEXT/eox-core/compare/v10.5.1...v10.6.0) - (2024-09-17)

### Added

- **Integration Tests**: A new set of integration tests was added to validate
the Users API. These tests ensure the correct behavior of endpoints
interacting with Open edX components.

### Changed

- **Unit Tests**: The unit tests were moved to a new directory, `/unit`, to
separate them from the integration tests. This change aims to improve the
organization of the tests and make it easier to identify the different types
of tests.

## [v10.5.1](https://github.com/eduNEXT/eox-core/compare/v10.5.0...v10.5.1) - (2024-07-19)

### Fixed
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ clean: ## Remove generated byte code, coverage reports, and build artifacts

python-test: clean ## Run tests
$(TOX) pip install -r requirements/test.txt --exists-action w
$(TOX) coverage run --source="." -m pytest ./eox_core
$(TOX) coverage run --source="." -m pytest ./eox_core --ignore-glob='**/integration/*'
$(TOX) coverage report --fail-under=70

python-quality-test:
Expand All @@ -49,6 +49,9 @@ python-quality-test:

run-tests: python-test python-quality-test

run-integration-tests: install-dev-dependencies
pytest ./eox_core --ignore-glob='**/unit/*' --ignore-glob='**/edxapp_wrapper/*'

upgrade: export CUSTOM_COMPILE_COMMAND=make upgrade
upgrade: ## update the requirements/*.txt files with the latest packages satisfying requirements/*.in
pip install -qr requirements/pip-tools.txt
Expand Down
2 changes: 1 addition & 1 deletion eox_core/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""
Init for main eox-core app
"""
__version__ = '10.5.1'
__version__ = '10.6.0'
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 9143370

Please sign in to comment.