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
I've searched existing issues and found nothing related to my issue.
Describe the feature you want to add
I want to make sure, that my collection is executed by a specific version of Bruno. Currently I want version 1.35.0 because this versions handle line comments correctly (issue #3216 is solved by this version).
I want to implement a test like to stop collection execution using bru.setNextRequest(null) if the version of Bruno does not fulfill the requirements.
My idea is that a new function like bru.getVersion() will return a string like "1.34.2" for Bruno version 1.34.2
With such a function the follwoing code can check if the minimum required version is used for executing a collection.
Mockups or Images of the feature
The following checks the version of Bruno and aborts collection run if Bruno is not at least version 1.34.2:
const minVersion = "1.34.2";
let versionOK;
test("Bruno version is ok", function () {
versionOK = false;
const currentVersionComponents = bru.getVersion().split(".");
const requiredVersionComponents = minVersion.split(".");
for (let i = 0; i < currentVersionComponents.length; i++) {
expect(currentVersionComponents[i]).to.be.at.least(requiredVersionComponents[i]);
}
versionOK = true;
});
if (!versionOK) {
test("abroting collection run", function() {
throw new Error("Minimal version of Bruno must be at least " + minVersion);
});
bru.setNextRequest(null);
}
The text was updated successfully, but these errors were encountered:
I have checked the following:
Describe the feature you want to add
I want to make sure, that my collection is executed by a specific version of Bruno. Currently I want version 1.35.0 because this versions handle line comments correctly (issue #3216 is solved by this version).
I want to implement a test like to stop collection execution using
bru.setNextRequest(null)
if the version of Bruno does not fulfill the requirements.My idea is that a new function like
bru.getVersion()
will return a string like"1.34.2"
for Bruno version 1.34.2With such a function the follwoing code can check if the minimum required version is used for executing a collection.
Mockups or Images of the feature
The following checks the version of Bruno and aborts collection run if Bruno is not at least version 1.34.2:
The text was updated successfully, but these errors were encountered: