feat(tests): add integration tests to tutor paragon plugin #3
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: