You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This enhancement proposes adding functionality to the CQL Test Runner to rerun tests that have failed or encountered errors. This feature would enable developers to focus on retesting specific cases after addressing issues in their CQL engine. Presently, tests are executed sequentially for all cases without the ability to selectively rerun failed tests.
The text was updated successfully, but these errors were encountered:
To rerun tests based on their status, I've planned to cache them in the file system and load them accordingly. For this purpose, I intend to encapsulate the tests within the following CQLTest class.
/** * Represents a CQL Test. */classCQLTest{/** * Enum representing possible test statuses. * @enum {string} */staticSTATUS={'PASS': 'pass','FAIL': 'fail','SKIP': 'skip','ERROR': 'error',}/** * Creates an instance of CQLTest. * @param {string} tests - The type of test. * @param {string} group - The group of test. * @param {object} test - The test details. */constructor(tests,group,test){}/** * Saves the test configuration to a file. * @param {string} directory - The directory to save the file. * @param {boolean} [force=false] - Whether to force saving even if the file already exists. * @returns {string|null} - The file save path, or null if directory is not provided. */save(directory,force=false){}/** * Runs the test. * @param {string} apiUrl - The API URL to run the test against. * @returns {Promise<CQLTestResult>} - The result of the test. */asyncrun(apiUrl){}/** * Returns the JSON representation of the test. * @returns {object} - The JSON representation of the test. */toJSON(){}/** * Creates a CQLTest instance from a JSON configuration. * @param {object} config - The JSON configuration. * @returns {CQLTest} - The CQLTest instance. */staticfromJSON(config){}}
This enhancement proposes adding functionality to the CQL Test Runner to rerun tests that have failed or encountered errors. This feature would enable developers to focus on retesting specific cases after addressing issues in their CQL engine. Presently, tests are executed sequentially for all cases without the ability to selectively rerun failed tests.
The text was updated successfully, but these errors were encountered: