Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions docs/ambari-dev/building-from-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ Before you begin, ensure you have the following requirements installed:
- Ambari Metrics: JDK 8
- Ambari Infra: JDK 8

### Additional Packages
- snappy-devel

## Building Ambari Main Project

### 1. Clone the Repository
Expand Down
32 changes: 32 additions & 0 deletions docs/ambari-dev/running-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,35 @@ Test reports can be found in the following locations after test execution:
:::tip
When debugging test failures, check these report directories for detailed test execution logs and stack traces.
:::

# Running Tests in Apache Ambari Metrics

### 1. Install Prequisites
Ambari Metrics requires a few more prerequisite for unit testing.

```bash
yum install -y krb5-devel
pip3 install distro kerberos
```

## Java Tests

### Running All Java Tests
To run all Java tests for the Ambari Metrics:
```bash
mvn test \
-DskipPythonTests \
-Dmaven.test.failure.ignore \
-Dmaven.artifact.threads=10 \
-Drat.skip
```

## All Tests (Python and Java)

To run all Java tests for the Ambari Metrics:
```bash
mvn test \
-Dmaven.test.failure.ignore \
-Dmaven.artifact.threads=10 \
-Drat.skip
```
Loading