-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
37 lines (32 loc) · 1.07 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Define variables
MVN_CLEAN := mvn clean
MVN_TEST := mvn compile test
ORG_SUITE_NAME := xml/testng_org.xml
HEALING_SUITE_NAME := xml/testng_autohealing.xml
PROJECT_NAME := auto-healing using Selenium on LambdaTest
.PHONY: set-env
set-env:
@echo "Set env vars LT_USERNAME & LT_ACCESS_KEY"
# Procure Username and AccessKey from https://accounts.lambdatest.com/security
export LT_USERNAME=himanshu
export LT_ACCESS_KEY=Ia1MiqNfci
.PHONY: org-test
org-test:
- $(MVN_TEST) -DsuiteXml=$(ORG_SUITE_NAME)
.PHONY: auto-heal
auto-heal:
- $(MVN_TEST) -DsuiteXml=$(HEALING_SUITE_NAME)
.PHONY: clean
clean:
- mvn clean
# This helped: https://gist.github.com/hbsdev/a17deea814bc10197285
- find . | grep -E "(test-output)" | xargs rm -rf
- find . | grep -E "(target)" | xargs rm -rf
@echo "Clean Succeded"
.PHONY: help
help:
@echo ""
@echo "clean : Clean all project dependencies"
@echo "set-env : Set the environment variables LT_USERNAME & LT_ACCESS_KEY"
@echo "org-test : Run tests without healed locators on LambdaTest"
@echo "auto-heal : Run auto-healing tests on LambdaTest"