Merge pull request #645 from liyasthomas/hotfix/tests

Run tests even after failed request
This commit is contained in:
Liyas Thomas
2020-03-04 20:21:05 +05:30
committed by GitHub

View File

@@ -2132,16 +2132,6 @@ export default {
}
}
})()
// tests
const syntheticResponse = {
status: this.response.status,
body: this.response.body,
headers: this.response.headers,
}
const { testResults } = runTestScriptWithVariables(this.testScript, {
response: syntheticResponse,
})
this.testReports = testResults
} catch (error) {
console.error(error)
if (error.response) {
@@ -2187,6 +2177,16 @@ export default {
}
}
}
// tests
const syntheticResponse = {
status: this.response.status,
body: this.response.body,
headers: this.response.headers,
}
const { testResults } = runTestScriptWithVariables(this.testScript, {
response: syntheticResponse,
})
this.testReports = testResults
},
getQueryStringFromPath() {
let queryString