# Newman integration with bitbucket

**URL:** <https://community.postman.com/t/newman-integration-with-bitbucket/29360>\
**Category:** Help Hub\
**Tags:** newman-project, tests, collections\
**Created:** [November 3, 2021, 1:26pm UTC](https://community.postman.com/t/newman-integration-with-bitbucket/29360 "2021-11-03T13:26:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![automationQA](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@automationQA](https://community.postman.com/u/automationQA)\
**Post date:** [November 3, 2021, 1:26pm UTC](https://community.postman.com/t/newman-integration-with-bitbucket/29360/1 "2021-11-03T13:26:58Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.  
> Working with an AI coding agent? The [Postman plugin](https://github.com/postmanlabs/postman-plugin) lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.  
> For current help, see the [Postman docs](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

**Your question may already have an answer on the community forum. Please search for related topics, and then read through the [guidelines](https://community.postman.com/t/about-the-just-getting-started-category/37) before creating a new topic.**

> Here’s an outline with best practices for making your inquiry.

_My question_:  
Hello community,  
Does anyone have any idea about integration of newman tests in bitbucket CI?  
Does it exist ?  
Any tutorial please ?

_Details (like screenshots)_:

_How I found the problem_:

_I’ve already tried_:

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 3, 2021, 6:54pm UTC](https://community.postman.com/t/newman-integration-with-bitbucket/29360/2 "2021-11-03T18:54:22Z")

</div>

Hey @automationQA

I’m not sure on the full context of the question, would you be able to expand on that more?

This is a sample project I created which has a pipeline file that shows how you can run a collection, using Newman, in the most basic way:

[https://bitbucket.org/ddainton/postman-ci-pipeline-example/src/master/](https://bitbucket.org/ddainton/postman-ci-pipeline-example/src/master/)

---

<div class="post-metadata">

**Author:** ![automationQA](https://avatars.discourse-cdn.com/v4/letter/a/ed655f/32.png) [@automationQA](https://community.postman.com/u/automationQA)\
**Post date:** [November 4, 2021, 2:45pm UTC](https://community.postman.com/t/newman-integration-with-bitbucket/29360/3 "2021-11-04T14:45:30Z")

</div>

hello @danny-dainton Thank u for helping, I managed to launch my test collection with a simple example developed in golang but I cannot get the results on htmlextrareport

[image]

this is my yaml file

# Template Go (Golang) build

# This template allows you to validate your Go (Golang) code.

# The workflow allows running tests, build and code linting on the default branch.

image: goncalt/golang-ci:latest

pipelines:  
default:  
- step:  
name: Run and Test  
script:  
- go build -o ./test .  
- ./test &  
- newman --version  
- npm install -g newman-reporter-html  
- newman run ForTestBitbucket.postman\_collection.json -r htmlextra  
artifacts:  
paths:  
- report.html

can u help me please?

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [November 4, 2021, 4:06pm UTC](https://community.postman.com/t/newman-integration-with-bitbucket/29360/4 "2021-11-04T16:06:51Z")

</div>

I see you have this line:

```auto
- npm install -g newman-reporter-html

```

That would be the Postman HTML report and not the `htmlextra` one.

Also, you need to include this in the Newman command:

```auto
--reporter-htmlextra-export report.html

```

By default, if you don’t specify an export location the report will be created in the `/newman` directory with the default filename.

---

<div class="post-metadata">

**Author:** ![dixitnai0412](https://avatars.discourse-cdn.com/v4/letter/d/ad7895/32.png) [@dixitnai0412](https://community.postman.com/u/dixitnai0412)\
**Post date:** [October 24, 2024, 2:51pm UTC](https://community.postman.com/t/newman-integration-with-bitbucket/29360/5 "2024-10-24T14:51:02Z")

</div>

Thankyou so much. It worked perfectly 🙂
