Skip to content

Instantly share code, notes, and snippets.

View navsinghoberoi's full-sized avatar
🎯
Focusing

Navpreet Singh navsinghoberoi

🎯
Focusing
View GitHub Profile
@navsinghoberoi
navsinghoberoi / docker-compose.yml
Created October 29, 2020 14:23
docker-compose file for Sonarqube
version: "3"
services:
sonarqube:
image: sonarqube:6.7.1
expose:
- 9000
ports:
- "127.0.0.1:9000:9000"
networks:
@navsinghoberoi
navsinghoberoi / AllureReportHistoryTrends
Created October 23, 2020 06:23
Allure report with history trends setup
1. Add mentioned code in pom.xml file -->
<dependency>
<groupId>io.qameta.allure</groupId>
<artifactId>allure-testng</artifactId>
<version>2.13.0</version>
</dependency>
<build>
@navsinghoberoi
navsinghoberoi / DebugMvnPluginWithParamsLocally
Last active October 25, 2020 06:25
Debug code (mvn command with parameters on fly) locally on IntelliJ
<b>Problem</b>: There is a project that accepts multiple parameters value for running the tests.
<b>Ex mvn test -Dbrowser=chrome -Denv=staging -Dgroups=sanity</b>
If we need to debug tests accepting the mentioned parameters; then directly clicking on debug option wont help.
<b>Steps to follow</b>
1. Take clone of the repo for which debugging needs to be done & open the same on IntelliJ IDE.
2. Modify the xml file that includes only those testcases that needs to be debugged.
3. Setup environment variables that are fetched via System.getenv() (if used in codebase)