Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/daggerok/gradle-postman-example

This repository contains example how to execute postman collection tests using gradle (newman npm package). Add functionality to collect all html reports into single one
https://github.com/daggerok/gradle-postman-example

gradle moowok newman node node-js nodejs postman postman-apps postman-collection postman-example postman-test test test-automation test-driven-development test-framework test-runner testing testing-framework testing-tools tests

Last synced: 24 days ago
JSON representation

This repository contains example how to execute postman collection tests using gradle (newman npm package). Add functionality to collect all html reports into single one

Awesome Lists containing this project

README

        

= Run postman tests using Gradle image:https://travis-ci.org/daggerok/gradle-postman-example.svg?branch=master["Build Status", link="https://travis-ci.org/daggerok/gradle-postman-example"]

This repository contains example how to execute postman collection tests using gradle (newman node package)

. `src/test/json` - add postman collection with tests
. `package.json` - add test task test:n
. run `gradle build` to test and build single html report
. open in browser `build/postman/index.html`

.unix
----
./gradlew

npm i /g serve
serve build/postman

./gradlew dependencyUpdates -Drevision=release
----

.windows
----
gradlew

npm i /g serve
serve build/postman

gradlew dependencyUpdates -Drevision=release
----

links:

. link:https://www.getpostman.com/docs/postman/collection_runs/command_line_integration_with_newman[Reference]
. link:https://github.com/postmanlabs/newman[newman npm package (postman runner)]
. link:https://github.com/srs/gradle-node-plugin/blob/master/docs/node.md[gradle node plugin]