Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reduce Cypress Mock Test Execution Time (#3579)
* Initial WIP version of resource creation test * Experimental changes to poll the UI for updates * Working version if resource is present * increase card timeout and delete active wait * Added changes to find namespace from variables * Final changes to read variables, cleaned up utils * Small change to a comment * Dummy change to trigger mocks * Save changes on cypress-RHOAIENG-12649 * Changed file directories and names as requested on a PR comment * Saving changes to current branch * Additional directory/file name changes * Additional changes to save * Resolving timeout issue breaking mock tests, also resolved latest PR comments * Further changes for this test * Changes to revert the exist method appended to getCardView. * Fixed linting * Linting fixes * Final comments added * Fixed merge conflict * Small change to page object name * dummy commit * Removed RHOAI bug workaround * Removed comments * Last comment change * Testing changes to parallelism in Mock tests * Fixed syntax * Removed parallel matrix from entire file, made changes to Cypress execution command * Created a new job for Mocks, which allows to control threads and parallelism * Naming change * Syntax fix * Removed reference to cypress cloud and added headless execution * Indentation fix * changes to split files * Reverting to previous version which executed tests in parallel. Cleanup required but phase 1 is complete. * Changes to artifacts * 1 Container to test single execution speed with a split job * Removed redundent test, added logic to split mocks up and run them in 5 containers * Fixed syntax issue * Moved Code Coverage to correct position * Makes fixes to kick tests off * More tweaks to make tests execute * Tweaked command to launch server which I omitted last time - d'oh * Tweak to the execution comman * Further tweaking the execution command * More tweaks * Changes to Get test files to work out pathing issue * Pathing debugging and removed Unit tests for debugging * Removed unit test req * Further pathing debugging * Further pathing debugging part 2 * Further pathing debugging part 3 * List contents of mocked dir * Further pathing changes * Added recursive check * Syntax fix * Change to Cypress execution command * Container debug 1 * Container debug 2 * Container debug 3 * Container debug 3 * Container debug 5 * Spec file debugger 1 * Spec file debugger 2 * Spec file debugger 3 * Spec file debugger 4 * Spec file debugger 5 * Spec file debugger 6 * Spec file debugger 7 * Spec file debugger 8 * Spec file debugger 9 * Spec file debugger 10 * Spec file debugger 11 * Spec file debugger 12 * Spec file debugger 13 * Spec file debugger 14 * Spec file debugger 15 * Spec file debugger 16 * Spec file debugger 17 * Spec file debugger 18 * Removed references to CYPRESS_ * Amalgamated Gage's changes into this PR * Indention changes * Fixed linting issues and added another change from Gage's PR * Started again with Gage's changes as the base * Reverted CI command changes * Added steps to amalgamate results of Unit and Cypress tests. Also added Codecov back. * Changed unit tests to generate coverage results * Removed covereage list * Additional changes to Unit-tests * Made a change to exclude mock and test dir from Codecov, also made a change only look for json and lcov files * Further exclusion of Pages directory used in Page Objects * Dummy commit to retest codecov * Further change to exclude tests/pages and mocks from codecov * Additional Codecov changes, merged results and uploaded * Added backend changes and made changes to combinining * Chaniging Cypress Mock execution command * Chaniging Cypress coverage command to accept args * Amending cypress:run:mock:coverage again * Additional changes to amend coverage dir * second fix to coverage * Another potential fix for merging coverage reports * Further potential fixes for combine coverage report * Changes made to coverage report generation * Tweaking coverage output * Additional changes to add coverage-final.json to the necessary steps * Change to specify coverage-final for codecov * Hopefully final change to upload artifact to codecov * Hopefully final change to upload artifact to codecov 2 * Removed directory upload to codecov * Added back in verbose file viewer * Experiment with merged coverage * Experiment with merged coverage * Improvements to backend test code coverage generation * Added backend test coverage script * Added Jest coverage also to backend * Added Artifact Cleanup steps * Removed redundent upload artifact step * Added a wrapper job to report status to Github * PR Comments * Added script for linting * Corrected test:lint script name * Updated pipeline with new linter * Changing linting * Changing linting 2 * Changing linting 3 * Changing linting 4 * Changing linting 5 * Updated linting command name * Missed dir nav * Removed redundant commands * Removed redundent test lint command from root dir --------- Co-authored-by: Fede Alonso <fealonso@redhat.com>
- Loading branch information