MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / metaProperties

Function metaProperties

lib/plugin/junitReporter.js:178–192  ·  view source on GitHub ↗
(test)

Source from the content-addressed store, hash-verified

176}
177
178function metaProperties(test) {
179 const props = []
180 const meta = test.meta || {}
181 for (const key of Object.keys(meta)) {
182 if (meta[key] === undefined || meta[key] === null) continue
183 props.push([key, stringifyMeta(meta[key])])
184 }
185 if (Array.isArray(test.tags) && test.tags.length) {
186 props.push(['tags', test.tags.join(' ')])
187 }
188 if (test.retries > 0 || test.retryNum > 0) {
189 props.push(['retries', String(test.retryNum || test.retries)])
190 }
191 return props
192}
193
194function stringifyMeta(value) {
195 if (typeof value === 'string') return value

Callers 1

buildTestCaseFunction · 0.85

Calls 2

stringifyMetaFunction · 0.85
pushMethod · 0.80

Tested by

no test coverage detected