Add javascript unit tests for RobotDashboard#229
Open
timdegroot1996 wants to merge 24 commits intomainfrom
Open
Add javascript unit tests for RobotDashboard#229timdegroot1996 wants to merge 24 commits intomainfrom
timdegroot1996 wants to merge 24 commits intomainfrom
Conversation
- Created `test_robotdashboard.py` to cover various functionalities of the RobotDashboard class, including initialization, output processing, and dashboard creation. - Implemented tests for handling outputs, including error scenarios for invalid XML and duplicate logs. - Added tests for the `print_runs`, `remove_outputs`, and `create_dashboard` methods to ensure correct behavior under different configurations. - Developed `test_server.py` to test the ApiServer class and its FastAPI endpoints, utilizing MagicMock for the RobotDashboard instance. - Covered authentication, output addition, log management, and error handling in the server tests. - Ensured comprehensive coverage of both successful and failure scenarios for all endpoints.
…ate test assertions
- Implement tests for `build_tooltip_meta`, `lookup_tooltip_meta`, and `format_status` functions in `tooltip_helpers.test.js`. - Create tests for merging logic in `localstorage.test.js`, including deep merging and nested settings. - Introduce mock data and configurations for testing in `mocks` directory. - Add scripts for running tests using Vitest. - Configure Vitest with aliases and test environment settings in `vitest.config.js`.
- Removed outdated testing documentation for unit tests and Robot Framework tests. - Added new documentation for JavaScript unit tests, including setup, structure, and mocking patterns. - Updated Python unit tests documentation to clarify usage and structure. - Introduced a new Robot Framework tests documentation to outline test execution and dependencies. - Adjusted package-lock.json to include project name and updated dependencies.
- Deleted test_robotdashboard.py, which contained unit tests for the RobotDashboard class, including tests for initialization, output processing, and dashboard creation. - Deleted test_server.py, which included unit tests for the ApiServer class and its FastAPI endpoints, covering authentication, output handling, and log management.
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.
Added an initital version of javascript unit tests.
And refactored the other tests to be more streamlined.
Implements #231