Skip to content

Commit

Permalink
modify the format
Browse files Browse the repository at this point in the history
  • Loading branch information
xhddx committed Mar 1, 2024
1 parent 411bd61 commit 1335060
Showing 1 changed file with 47 additions and 35 deletions.
82 changes: 47 additions & 35 deletions content/tech/quickTest.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,51 +11,58 @@ thumbnail:
origin: Unsplash
originURL: https://unsplash.com/photos/A4wa3SpyOsg
---
# Basic usage
what is continuous testing? \
## Basic usage

what is continuous testing?\
Continuous testing aims to provide rapid and frequent feedback on the quality and reliability of the software being
developed. It involves automatically executing a comprehensive set of tests, as part of the development and deployment
pipeline.

# Prerequisites
## Prerequisites

here is the preparation that need to know and will use in the follow steps\

- docker
- github
- jenkins
- newman
- node
- allure
# Installation
## 1. install docker
install jenkins and create a volume
{{< command >}}
docker pull jenkins/jenkins
{{< /command >}}
{{< command >}}
docker volume create jenkins-data
{{< /command >}}
## 2. run jenkins in daemon state
{{< command >}}
docker run \
-u root \
--rm \
-d \
-p 8080:8080 \
-p 50000:50000 \
-v jenkins-data:/var/jenkins_home \
-v /var/run/docker.sock:/var/run/docker.sock \
jenkins/jenkins
{{< /command >}}
## 3. install jenkins plugins
- NodeJS
- Allure
## 4. config the plugin's locations
go to jenkins dashboard --> manage jenkins --> tools

{{< image src="img/jenkins-allure-config.png" class="rounded" >}}
{{< image src="img/jenkins-node-config.png" class="rounded" >}}
## Installation and config

1. install jenkins and create a volume
{{< command >}}
docker pull jenkins/jenkins
{{< /command >}}
{{< command >}}
docker volume create jenkins-data
{{< /command >}}

2. run jenkins in daemon state
{{< command >}}
docker run \
-u root \
--rm \
-d \
-p 8080:8080 \
-p 50000:50000 \
-v jenkins-data:/var/jenkins_home \
-v /var/run/docker.sock:/var/run/docker.sock \
jenkins/jenkins
{{< /command >}}

3. install jenkins plugins
- NodeJS
- Allure

4. config the plugin's locations
go to jenkins dashboard --> manage jenkins --> tools
{{< image src="img/jenkins-allure-config.png" class="rounded" >}}
{{< image src="img/jenkins-node-config.png" class="rounded" >}}

## 5.create an item and config

in the jenkins dashboard, click to create a new item -->freestyle project -->config
- Source Code Management
- choose git and paste you git url
Expand All @@ -74,12 +81,17 @@ in the jenkins dashboard, click to create a new item -->freestyle project -->con
- choose Allure report
- Build Triggers
- can choose Build periodically,so your project can be build and running at a specific time
# Run you project

## Run you project

click build now to run your project and get the report
{{< image src="img/jenkins-run.png" class="rounded" >}}
{{< image src="img/jenkins-allure-report.png" class="rounded" >}}
{{< carousel ratio="21x9" class="col-sm-12 col-lg-8 mx-auto" >}}
{{< img src="img/jenkins-run.png" caption="slide 1" >}}
{{< img src="img/jenkins-allure-report.png" caption="slide 2" >}}
{{< /carousel >}}

## More About

# More About
jenkins provides various plugins and support to different stack, it also support java and golang project continues
build. it is very useful\
in a big company, there always a platform to control this flow and make it view more acceptable to technical and
Expand Down

0 comments on commit 1335060

Please sign in to comment.