Commit 0baed0a
authored
Packages/api and wdio testplanit reporter (#25)
* feat(translations): add project ID display and enhance SDK documentation
- Introduced a new translation key for displaying project IDs in English, Spanish, and French.
- Updated the ProjectHeader component to show the project ID.
- Added a new SDK & Integrations category in the documentation sidebar, linking to relevant SDK pages for better user guidance.
- Updated pnpm workspace configuration to include all packages for better management.
* feat(api): enhance JUnit test result handling and improve SDK documentation
- Introduced new interfaces for JUnit test results and updated existing types to support JUnit integration.
- Enhanced the TestPlanItClient to include methods for retrieving JUnit test results and suites.
- Updated the WebdriverIO reporter to reflect changes in test run URLs and improve reporting accuracy.
- Added requirements for creating test cases and improved caching mechanisms for folder paths during test runs.
- Updated documentation to clarify configuration options and usage of new features.
* feat(scheduler): enhance automated test result handling
- Introduced a utility function to identify automated test case sources, improving the filtering of test results.
- Updated the forecast service to utilize the new function for retrieving JUnit test case IDs.
- Modified user feedback messages to reflect the change from JUnit-specific results to a broader automated test results context in English, Spanish, and French.
* feat(repository): filter out deleted items in AddCase, AddCaseRow, AddFolder, and EditFolder components
- Updated queries in AddCaseModal, AddCaseRow, AddFolderModal, and EditFolderModal to exclude items marked as deleted by adding `isDeleted: false` to the where clause.
* fix(api): standardize string quotes and improve error handling in TestPlanItClient
- Updated string quotes in the LookupRequest interface for consistency.
- Enhanced error handling in the TestPlanItClient class to improve readability and maintainability by formatting multi-line strings and adding try/catch blocks for better error management.
- Refactored several method calls to improve code clarity and structure.
* feat(select-all): implement SelectAllCheckbox component with shift-key functionality and tooltip support
- Added a new SelectAllCheckbox component to enhance the selection experience in the Cases view.
- Implemented shift-key detection for selecting/deselecting all cases across pages.
- Updated tooltips to provide user guidance on selection actions, including translations for English, Spanish, and French.
- Refactored related components to integrate the new checkbox functionality and improve overall user interaction.
* feat(api): enhance findOrCreateTestCase method to handle deleted folders
- Updated the findOrCreateTestCase method in TestPlanItClient to first search for active test cases in active folders and move any found in deleted folders to the specified folder.
- Improved handling of test case creation by ensuring that cases can be restored and moved to new folders when necessary.
- Enhanced the importTestResults method to correctly process and handle incoming SSE events, including managing incomplete data and error scenarios.
- Added comprehensive tests for importTestResults to ensure robust error handling and correct event processing.
* refactor(api): simplify importTestResults tests by using a mock file
- Replaced direct File instantiation with a mockFile variable in the importTestResults tests to improve readability and maintainability.
- Updated test cases to utilize the new mockFile structure for consistency across all test scenarios.
* feat(treeview): optimize folder selection and expand behavior
- Introduced a reference to track the previously selected folder ID to prevent unnecessary updates when the selection remains unchanged.
- Enhanced the folder expansion logic to automatically select the folder when it is expanded for the first time, improving user experience.
- Updated the API authentication handling to utilize AsyncLocalStorage for thread-safe context management, ensuring consistent access to user authentication data across requests.
* feat(treeview): add expand/collapse all descendants functionality
- Implemented recursive functions to expand and collapse all descendants of a node in the TreeView component.
- Enhanced user interaction by allowing users to expand or collapse all child nodes using the Alt key (Windows) or Option key (Mac) during folder selection.
- Improved overall folder management experience in the TreeView by streamlining node expansion behavior.
* feat(testcase): integrate TestCaseNameDisplay for improved case representation
- Replaced direct case name rendering with the TestCaseNameDisplay component across multiple files to enhance the display of test cases.
- Added handling for deleted cases, ensuring proper representation and interaction in the UI.
- Updated related components to support the new structure, improving maintainability and user experience.
* feat(reporter): enhance folder resolution logic with optional hierarchy creation
- Updated the folder resolution process to allow for the creation of a parent folder if it does not exist and the `createFolderHierarchy` option is enabled.
- Improved logging to provide feedback when a folder is created, enhancing user experience and clarity in folder management.
- Ensured that error handling remains intact for cases where folder creation is not permitted.
* feat(release): improve version extraction for cross-platform compatibility in semantic release workflows
- Updated the version extraction logic in both cli-semantic-release.yml and semantic-release.yml to use sed for better compatibility across Linux and macOS.
- Enhanced comments to clarify the purpose of version extraction and ensure portability.
- Adjusted the handling of version checks to ensure proper formatting before outputting to GitHub Actions.
* chore(lockfile): remove pnpm-lock.yaml file
- Deleted the pnpm-lock.yaml file to streamline dependency management.
- This change may be part of a transition to a different package manager or a restructuring of the project dependencies.
* feat(reporter): add specFile and commandOutput to TrackedTestResult interface
- Enhanced the TrackedTestResult interface to include optional properties for specFile and commandOutput, allowing for better tracking of test execution context and output logs.
- Updated the reporter logic to populate these new fields, improving the detail and usability of test results.
- Adjusted related components to ensure compatibility with the new data structure, enhancing overall reporting capabilities.
* feat(reporter): update screenshot upload functionality and documentation
- Enhanced the `uploadScreenshots` option to clarify that screenshots are intercepted from the `afterTest` hook rather than automatically captured by the reporter.
- Updated documentation to reflect the new behavior and configuration requirements for capturing screenshots on test failure.
- Removed the `includeConsoleLogs` option from the reporter interface and related files to streamline functionality.
- Improved overall clarity in the README and type definitions regarding screenshot handling and reporting behavior.
* feat(reporter): add junitResultId to TrackedTestResult for deferred screenshot uploads
- Introduced a new optional property `junitResultId` in the `TrackedTestResult` interface to facilitate the deferred upload of screenshots after test results are reported.
- Updated the reporter logic to store the JUnit result ID upon creation, allowing for proper association of screenshots with their respective test results during the upload process.
- Enhanced the screenshot upload functionality to ensure that screenshots taken in the `afterTest` hook can be uploaded correctly, improving overall reporting accuracy and usability.
* feat(reporter): enhance screenshot handling and upload logging
- Updated screenshot command detection to include 'saveScreenshot' and improved logging for better traceability.
- Enhanced result handling to differentiate between base64 data and file paths, ensuring accurate screenshot processing.
- Added detailed logging for screenshot uploads, including file size and error stack traces on upload failure, improving debugging capabilities.
- Refactored the screenshot capture logic to ensure proper association with current test UID, enhancing reporting accuracy.
* feat(reporter): improve screenshot upload handling and logging
- Refactored screenshot upload logic to utilize promises for concurrent uploads, enhancing performance and reliability.
- Added detailed logging for each upload attempt, including success and failure messages, to improve traceability.
- Ensured that all pending screenshots are cleared only after all uploads are completed, maintaining accurate reporting.
- Updated related documentation to reflect changes in screenshot handling and upload behavior.
* fix(api): update file size calculation to use BigInt for compatibility with database schema
- Changed the file size calculation in the TestPlanItClient class to use BigInt, ensuring compatibility with the database schema that requires BigInt for size values.
- Updated related files to reflect this change in both JavaScript and module formats.
* fix(api): update file size calculation to string for JSON compatibility
- Changed the file size calculation in the TestPlanItClient class to convert the size to a string, ensuring compatibility with JSON serialization, as BigInt cannot be serialized directly.
- Updated related files to reflect this change in both JavaScript and module formats.
* refactor(api): update attachment handling to use dedicated endpoint for file uploads
- Refactored the attachment creation logic in the TestPlanItClient class to utilize a dedicated API endpoint for uploading attachments, improving compatibility with BigInt size handling.
- Removed the previous method of constructing the attachment data object and replaced it with a direct request to the new endpoint, streamlining the process.
- Updated related files to reflect these changes in both JavaScript and module formats.
* fix(api): update URL validation in attachment schema to allow relative paths
- Modified the attachment schema to accept both full URLs and relative paths for the URL field, enhancing flexibility in attachment handling.
- Updated validation to ensure the URL is a non-empty string, improving data integrity for attachment uploads.
* refactor(attachments): update download link handling and enhance test result data structure
- Replaced the Link component with an anchor tag in the AttachmentsCarousel for improved URL handling, utilizing a utility function to generate storage URLs.
- Enhanced the TestResultHistory component by refining the selection of JUnit results and attachments, ensuring only relevant fields are included and improving data integrity.
- Updated the attachments query to filter out deleted items and include additional fields for better context in test results.
* feat(api): enhance findOrCreateTestCase method to return detailed results
- Introduced a new interface, FindOrCreateTestCaseResult, to encapsulate the result of the findOrCreateTestCase method, providing metadata about the test case resolution.
- Updated the findOrCreateTestCase method to return an object containing the test case and an action indicating whether it was 'found', 'created', or 'moved'.
- Enhanced documentation for the method to clarify the return structure and its implications for test case management.
- Adjusted related files to ensure consistency with the new return type across JavaScript and TypeScript implementations.
* feat(delete): enhance delete functionality for test runs and sessions
- Added `onBeforeDelete` callback to `DeleteTestRunModal` and `DeleteSessionModal` to signal the start of the delete process, preventing race conditions during navigation.
- Implemented query cache removal for related test runs and sessions before deletion to avoid UI inconsistencies and 404 errors.
- Updated navigation logic to ensure smooth transitions during deletion, including immediate dialog closure and toast notifications for user feedback.
- Enhanced error handling to redirect back to the appropriate page if deletion fails, maintaining user experience.
- Updated localization files to provide clearer messaging regarding the deletion process and its implications.
* fix(TestRunPage): ensure loading state for missing testRunData
- Added a check for the existence of testRunData to handle loading state appropriately, preventing potential null reference errors.
- Updated TypeScript null analysis to ensure robust handling of automated test run types.
* feat(api): enhance uploadJUnitAttachment method to include note parameter
- Updated the uploadJUnitAttachment method in the TestPlanItClient class to accept an optional note parameter, allowing users to attach additional context to JUnit test results.
- Modified related TypeScript definitions and JavaScript implementations to accommodate the new parameter, ensuring consistency across the API.
- Enhanced documentation for the method to clarify the purpose and usage of the note parameter, improving usability for developers.
* feat(api): enhance TestPlanIt API types and shared state management
- Updated API types to reflect changes in the TestPlanIt schema, including new fields such as isDeleted, createdAt, and createdById across various interfaces.
- Introduced UploadAttachmentOptions interface for better attachment handling.
- Enhanced shared state management in the TestPlanItReporter to track active workers, ensuring proper handling of concurrent test runs.
- Improved documentation and comments for clarity on new functionalities and their implications.
* feat(api): enhance UpdateTestRunOptions and improve TestPlanItClient logic
- Added `completedAt` field to the `UpdateTestRunOptions` interface to track completion timestamps.
- Updated the `TestPlanItClient` to automatically set `completedAt` when `isCompleted` is marked true, ensuring accurate tracking of test run completion.
- Refactored related TypeScript definitions and JavaScript implementations for consistency.
- Improved formatting in the `TestPlanItClient` for better readability and maintainability.
* docs(webdriverio-reporter): add behavior details for missing case IDs based on autoCreateTestCases setting
- Documented the behavior when no case ID is found in test titles, specifying the effects of the `autoCreateTestCases` setting.
- Clarified that tests without valid case IDs will not appear in TestPlanIt results if auto-creation is not enabled.
- Enhanced the documentation to improve understanding of test case management in the context of the reporter.
* refactor(pagination): standardize page size options across components
- Replaced hardcoded page size options with `defaultPageSizeOptions` in multiple components to ensure consistency in pagination settings.
- Updated relevant imports and removed redundant page size definitions, enhancing maintainability and reducing code duplication.
* feat(reporter): enhance test run summary and workflow tracking
- Updated the WebdriverIO reporter documentation to include detailed results summary and additional statistics when `autoCreateTestCases` is enabled.
- Modified the API to return the `workflowType` for test runs, allowing better tracking of test run states.
- Enhanced the TestRunCasesSummary component to display a loading spinner during automated test runs and updated completion percentage display logic.
- Added new localization messages for "Importing..." and "Adding test cases..." in English, Spanish, and French to improve user feedback during test case processing.
* chore(dependencies): update package versions in pnpm-lock.yaml and package.json
- Updated various package versions to their latest compatible releases, including `@types/node`, `ai`, `next-intl`, `simple-icons`, and others for improved stability and features.
- Adjusted dependency specifications for `eslint`, `autoprefixer`, and `baseline-browser-mapping` to reflect the latest versions.
- Ensured consistency in dependency versions across the project to maintain compatibility and reduce potential issues.
* chore(dependencies): update @testplanit/api version in package.json
- Changed the dependency for `@testplanit/api` from a workspace reference to a specific version `^0.1.0` to ensure consistent installations across environments.
* chore(dependencies): update @testplanit/api dependency specification to use workspace:^
- Changed the dependency for `@testplanit/api` in both package.json and pnpm-lock.yaml from a specific version to a workspace reference, ensuring compatibility with local development environments.1 parent 2b4afe4 commit 0baed0a
107 files changed
Lines changed: 21988 additions & 14825 deletions
File tree
- .changeset
- .github/workflows
- docs
- docs/sdk
- packages
- api
- dist
- src
- wdio-testplanit-reporter
- dist
- src
- testplanit
- app
- [locale]
- admin/projects
- projects
- overview/[projectId]
- repository/[projectId]
- [caseId]
- runs/[projectId]
- [runId]
- sessions/[projectId]
- [sessionId]
- tags/[projectId]/[tagId]
- tags/[tagId]
- api
- junit/attachment
- model/[...path]
- test-runs
- [testRunId]/summary
- completed
- components
- search
- tables
- ui
- dist
- messages
- workers
- lib
- hooks
- openapi
- messages
- prisma
- services
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | | - | |
65 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
61 | 62 | | |
62 | 63 | | |
63 | 64 | | |
| |||
0 commit comments