Skip to content

Commit

Permalink
added feature to test execution
Browse files Browse the repository at this point in the history
  • Loading branch information
snevesbarros committed Jan 24, 2021
1 parent 05bbb98 commit f222e7e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions app/models/execution.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ const TestExecutionSchema = mongoose.Schema({
trim: true,
lowercase: true,
},
feature: {
type: String,
required: false,
trim: true,
lowercase: true,
},
build: {
type: Schema.Types.ObjectId,
ref: 'Build',
Expand Down
3 changes: 2 additions & 1 deletion app/utils/build-metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,14 @@ buildMetricsUtils.determineNewState = (existingState, newState) => {

buildMetricsUtils.createExecution = (req, build) => {
const {
title, suite, start, end, platforms, tags, meta, actions,
title, suite, start, end, platforms, tags, meta, actions, feature,
} = req.body;

const testExecution = new TestExecution({
title,
suite,
build,
feature,
start,
end,
platforms,
Expand Down
1 change: 1 addition & 0 deletions swagger/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -1796,6 +1796,7 @@
"title": { "type": "string" },
"suite": { "type": "string" },
"build": { "type": "string", "uniqueItems": true },
"feature": { "type": "string" },
"actions": {
"type": "array",
"items": {
Expand Down

0 comments on commit f222e7e

Please sign in to comment.