Skip to content

Commit

Permalink
parallel runs
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Ball committed Oct 19, 2023
1 parent f900e0c commit 8a87c35
Show file tree
Hide file tree
Showing 3 changed files with 9,090 additions and 1,399 deletions.
10 changes: 6 additions & 4 deletions newman.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ const newman = require('newman')

const config = [{
collection: 'postman_collection.json',
environment: 'postman_environment.json'
environment: 'postman_environment.json',
reporters: 'htmlextra'
}, {
collection: 'postman_echo.json'
collection: 'postman_echo.json',
reporters: 'htmlextra'
}]

const runs = config.map((cfg, i) => {
Expand All @@ -16,6 +18,6 @@ const runs = config.map((cfg, i) => {
})
})

Promise.all(runs).then((results) => {
console.log(results)
Promise.all(runs).then(() => {
console.log('Done')
})
Loading

0 comments on commit 8a87c35

Please sign in to comment.