Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump log4j.version from 2.2 to 2.13.3 in /mrchecker-framework-modules/mrchecker-core-module #30

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
58e6b72
Implements a third part of unit tests
michalbabiarz May 16, 2020
13fe974
Junit5 porting - base class and test watcher initially ported
michalbabiarz May 16, 2020
4793cd9
Junit5 porting - TestWather replaced with TestExecutionObserver
michalbabiarz May 18, 2020
9769f97
Junit5 porting - first selenium test is working
michalbabiarz May 18, 2020
0842887
Fixes - Junit5 porting - first selenium test is working
michalbabiarz May 18, 2020
c2b0094
Junit5 migration - working: allure, jacoco and first selenium test
michalbabiarz May 20, 2020
cf8d45c
Junit5 - now operational, cleaning and junits needed
michalbabiarz May 20, 2020
60236df
Junit5 migration - a bit of cleaninig
michalbabiarz May 21, 2020
ca3a8d1
Junit5 migration - selenium module migrated, tags introduced
michalbabiarz May 25, 2020
483020b
Junit5 migration - dependencies cleanup
michalbabiarz May 26, 2020
a572ab9
Junit5 migration - security module migrated
michalbabiarz May 27, 2020
a86ab49
Junit5 migration - WebApi module migrated
michalbabiarz May 27, 2020
1394e6c
Junit5 migration - mobile migrated
michalbabiarz May 28, 2020
01abc86
Junit5 migration - database migrated
michalbabiarz May 28, 2020
607a1f3
Junit5 migration - rework
michalbabiarz Jun 8, 2020
90a6655
Junit5 migration - adding Jenkinsfile
michalbabiarz Jun 9, 2020
6e29437
Junit5 migration - test fixes
michalbabiarz Jun 22, 2020
67c1d03
Junit5 migration - fixes jenkins file
michalbabiarz Jun 22, 2020
498a357
Junit5 migration - test refactor"
michalbabiarz Jun 22, 2020
3f860f4
Junit5 migration - adjustments in modules
michalbabiarz Jun 22, 2020
ead1b49
Junit5 migration - refactoring of BaseTestExecutionObserver
michalbabiarz Jun 23, 2020
24baa9e
Junit5 migration - adjusts test suites
michalbabiarz Jun 25, 2020
ca5b670
Junit5 migration - adjusts Jenkinsfile
michalbabiarz Jun 25, 2020
785d125
Junit5 migration - adds BasePages with auto registration to TestExecu…
michalbabiarz Jun 25, 2020
90664e4
Bump log4j.version in /mrchecker-framework-modules/mrchecker-core-module
dependabot[bot] Jul 1, 2020
beceb6d
Junit5 migration - resolves review issues
michalbabiarz Jul 8, 2020
3a26b13
Junit5 migration - resolves review issues part 2
michalbabiarz Jul 14, 2020
0ca1b3b
Merge pull request #29 from devonfw-forge/feature/15-junit5-migration
michalbabiarz Jul 27, 2020
9b676bc
Bump log4j.version in /mrchecker-framework-modules/mrchecker-core-module
dependabot[bot] Jul 1, 2020
6af9489
Merge branch 'dependabot/maven/mrchecker-framework-modules/mrchecker-…
mbabiarzCap Sep 11, 2020
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
41 changes: 41 additions & 0 deletions CICD/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
env.module = "${JOB_NAME}".split('/')[1]
env.workspace = "mrchecker-framework-modules"
pipeline{
agent {docker {image 'mrchecker/mrchecker:v1.1.3'}}
stages{
stage('Build'){
steps{
echo "Building module ${env.module} and it's dependency"
sh """
cd ${env.workspace}
mvn clean compile package install -DskipTests=true --projects ${env.module} --also-make
"""
//bulid this module and its dependencies deploy them to local repo
}
}
stage('Test'){
steps{
echo "Testing ${env.module}"
sh """
cd ${env.workspace}
mvn jacoco:prepare-agent verify -Dgroups=UnitTest,IntegrationTest --projects ${env.module}
"""
}
}
}
post{
always{
archiveArtifacts artifacts: "${env.workspace}/${env.module}/target/*.jar", fingerprint: true
jacoco()
junit testResults:'**/surefire-reports/*.xml', healthScaleFactor: 0.8 //as I set the junit treshold to 80%
}
success{
script{
def downstreamJob = "${JOB_NAME}".split('/')
downstreamJob[0] = 'test'
downstreamJob = downstreamJob.join('/')
build job: downstreamJob, propagate: false, wait: false
}
}
}
}
4 changes: 4 additions & 0 deletions mrchecker-framework-modules/clirunners/0_0_running_tests.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
running tests
cd ..
mvn clean verify -Dgroups=UnitTests,IntegrationTests

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
running tests
cd ..
mvn clean install -Dgroups=UnitTests,IntegrationTests

3 changes: 3 additions & 0 deletions mrchecker-framework-modules/clirunners/2_generate_report.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
echo starting allure server to display report
cd ..
mvn site allure:report
3 changes: 3 additions & 0 deletions mrchecker-framework-modules/clirunners/3_show_report.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
echo launching default web browser to show test report
cd ..
mvn site allure:serve
108 changes: 14 additions & 94 deletions mrchecker-framework-modules/mrchecker-core-module/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>


<parent>
<artifactId>mrchecker-test-framework</artifactId>
<groupId>com.capgemini.mrchecker</groupId>
<version>2.4.2-SNAPSHOT</version>
<version>3.0.1-SNAPSHOT</version>
</parent>

<artifactId>mrchecker-core-module</artifactId>
<version>4.12.1.4-SNAPSHOT</version>
<version>5.6.2.1-SNAPSHOT</version>
<packaging>jar</packaging>
<name>MrChecker - Test core - Module</name>
<description>MrChecker Test Framework Core is responsible for:
Expand All @@ -25,7 +24,7 @@
* Externalize test environment (DEV, QA, PROD)
* Adding analytics source code
* Update Observers
Based on Junit4.12
Based on Junit5
</description>
<url>https://github.com/devonfw/devonfw-testing</url>

Expand Down Expand Up @@ -57,87 +56,21 @@
</scm>

<properties>


<project.build.sourceEncoding>UTF8</project.build.sourceEncoding>

<!-- Test tools -->
<junit.version>4.12</junit.version>
<hamcrest.version>1.3</hamcrest.version>
<mockito.version>1.8.5</mockito.version>
<joda-time.version>2.9.9</joda-time.version>
<commons-csv.version>1.1</commons-csv.version>
<JUnitParams.version>1.0.4</JUnitParams.version>

<!-- Tests executors -->
<thread.count>1</thread.count>
<junit-toolbox.version>2.4</junit-toolbox.version>

<!-- Logger -->
<log4j.version>2.2</log4j.version>
<log4j.version>2.13.3</log4j.version>
<slf4j.version>1.7.21</slf4j.version>


<!-- Allure reporting -->
<allure-junit4-listener.version>2.6.0
</allure-junit4-listener.version> <!-- https://mvnrepository.com/artifact/io.qameta.allure/allure-junit4 -->
<allure-maven-report-generator.version>2.9
</allure-maven-report-generator.version> <!-- https://mvnrepository.com/artifact/io.qameta.allure/allure-maven -->
<aspectj.version>1.8.10</aspectj.version>


<!-- Cucumber version -->
<cucumber.version>4.2.0</cucumber.version>
<gherkin.cucumber.version>5.1.0</gherkin.cucumber.version>
<cucumber-reporting.version>3.7.0</cucumber-reporting.version>

<!-- JSON support java 1.8 -->
<org.json.version>20160810</org.json.version>

</properties>

<dependencies>


<!-- https://mvnrepository.com/artifact/org.hamcrest/hamcrest-all -->
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-all</artifactId>
<version>${hamcrest.version}</version><!--$NO-MVN-MAN-VER$ -->
<scope>test</scope>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-csv</artifactId>
<version>${commons-csv.version}</version><!--$NO-MVN-MAN-VER$ -->
</dependency>


<!--This dependency is necessary for JUnit plugin. -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version><!--$NO-MVN-MAN-VER$ -->
</dependency>
<dependency>
<groupId>pl.pragmatists</groupId>
<artifactId>JUnitParams</artifactId>
<version>${JUnitParams.version}</version><!--$NO-MVN-MAN-VER$ -->
</dependency>

<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-surefire-provider</artifactId>
<version>${surefire.provider.version}</version><!--$NO-MVN-MAN-VER$ -->
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>${mockito.version}</version><!--$NO-MVN-MAN-VER$ -->
</dependency>


<!--This dependency is necessary for Logger. -->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
Expand All @@ -163,39 +96,32 @@
<dependency>
<!-- Test listener. Binds Junit exec to Allure annotation -->
<groupId>io.qameta.allure</groupId>
<artifactId>allure-junit4</artifactId>

<artifactId>allure-junit5</artifactId>
</dependency>
<dependency>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-java-commons</artifactId>
</dependency>
<dependency>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-junit-platform</artifactId>
</dependency>
<dependency>
<!-- Allure report generator -->
<groupId>io.qameta.allure</groupId>
<artifactId>allure-maven</artifactId>
<version>${allure-maven-report-generator.version}</version>
</dependency>

<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>${aspectj.version}</version>
</dependency>


<!--This dependency is necessary for test suites runner with WildcardPatternSuite -->
<dependency>
<groupId>com.googlecode.junit-toolbox</groupId>
<artifactId>junit-toolbox</artifactId>
<version>${junit-toolbox.version}</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
</dependency>

<!--This dependency is necessary for Dependency Injection plugin. -->
<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
</dependency>

<dependency>
<groupId>org.jasypt</groupId>
<artifactId>jasypt</artifactId>
Expand Down Expand Up @@ -232,16 +158,10 @@
<artifactId>gherkin</artifactId>
<version>${gherkin.cucumber.version}</version>
</dependency>


</dependencies>


<!-- Build goals/actions -->
<build>
<plugins>
<!-- Plugins are taken from parent pom.xml -->
</plugins>
</build>

</project>
Loading