A plugin to send test results to Aquality Tracking
npm i @aquality-automation/aquality-tracking-reporter-jasmine
// conf.js
const AqualityReporter = require('@aquality-automation/aquality-tracking-reporter-jasmine');
jasmine.getEnv().addReporter(new AqualityReporter({
token: ${your_api_token},
api_url: ${your_api_url},
project_id: ${your_project_id},
testrun_id: ${testrun_id_for_results}
}));
// conf.js
exports.config = {
framework: 'jasmine',
onPrepare: function() {
const AqualityReporter = require('@aquality-automation/aquality-tracking-reporter-jasmine');
jasmine.getEnv().addReporter(new AqualityReporter({
token: ${your_api_token},
api_url: ${your_api_url},
project_id: ${your_project_id},
testrun_id: ${testrun_id_for_results}
}));
}
}
To start test run use:
aqualityReporter start ${your_api_url} ${your_project_id} ${your_api_token} ${suite name} ${environment} ${build_name}
To finish test run use:
aqualityReporter finish ${your_api_url} ${your_project_id} ${your_api_token} ${testrun id}