feat(tests): add integration tests to tutor paragon plugin#3
Closed
Ang-m4 wants to merge 8 commits intoafg/tutor-paragon-impfrom
Closed
feat(tests): add integration tests to tutor paragon plugin#3Ang-m4 wants to merge 8 commits intoafg/tutor-paragon-impfrom
Ang-m4 wants to merge 8 commits intoafg/tutor-paragon-impfrom
Conversation
5b06b42 to
5d13647
Compare
Alec4r
reviewed
Jun 5, 2025
Alec4r
reviewed
Jun 5, 2025
dd9b001 to
479967e
Compare
479967e to
af0ab37
Compare
Author
|
This PR was reviewed and successfully merged, take a look at openedx#36 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces integration tests for the Tutor Paragon plugin, utilizing Pytest to validate the plugin's setup and functionality. These tests ensure that the plugin is correctly installed, enabled, and operates as expected within the Tutor environment.
Key Enhancements
Logging Improvements
printstatements withlogger.infofor logging plugin installation processes. This change enhances log management and prevents interference with test output, especially when retrieving the Tutor installation root.Pytest Fixtures and Configuration
Introduced Pytest fixtures in
integration/conftest.pywith package level scope to:These fixtures ensure a consistent and isolated testing environment, adhering to Pytest's best practices for setup and teardown processes.
Helper Module
Added a
helpers.pymodule within theintegration/directory containing:Integration Test Suite
Developed integration tests within the
integration/directory to verify:plugin_setup_test.py).theme-sourcesandcompiled-themes) are created.paragon-build-tokensjob is available in Tutor's configuration.plugin_functionality_tests.py).Makefile Update
make integration-teststo streamline the execution of integration tests.Project Structure
How to Run Integration Tests
Execute the following command to run the integration tests: