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
commit 31fde475a3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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