Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rerun failed tests #20

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

darkknight13
Copy link
Contributor

Apologies in advance if these changes seem extensive;

Changes Made:
Added classes CQLTest, CQLTests, CQLTestResult, and CQLResults to encapsulate functionality related to CQL tests, test results, and test runs.
Modified the script to accept command-line arguments for running test based on previous run status.

Classes:

  • CQLTest: Represents a single CQL test, with methods for loading configuration, preparing the test, saving the test configuration to a file, running the test against an API, and generating a checksum for the configuration.
  • CQLTests: Represents a collection of CQL tests, with methods for adding tests, running all tests, and caching test results.
  • CQLTestResult: Represents the result of running a single CQL test, with methods for computing the result and saving it to a file.
  • CQLResults: Represents the overall results of running CQL tests, with methods for summarizing the counts, converting results to JSON format, and saving results to a file.

Functions:

  • loadTestsFromCache(tmpPath, testStatus): Loads tests from cache based on test status.
  • loadAllTests(tmpPath, quickTest): Loads all tests, optionally loading only one group or one test set for testing.

Command-line Arguments:
-status=: Specifies the test status to run.

@darkknight13 darkknight13 self-assigned this May 16, 2024
@darkknight13 darkknight13 removed their assignment May 16, 2024
@darkknight13 darkknight13 marked this pull request as draft May 27, 2024 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement Option to Rerun Failed or Errored Tests in CQL Test Runner
1 participant