forked from esethna/mattermost-selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
32 lines (21 loc) · 841 Bytes
/
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
.PHONY: test test-chrome test-all clean patch-files
all: test-all
clean:
mvn clean
nuke:
mvn clean
rm -rf src/test/resources/selenium_standalone_binaries
rm -rf src/test/resources/selenium_standalone_zips
patch-files:
sed -i'' -e 's|// Sleep|Thread.sleep(2000);|g' ./src/test/java/com/mattermost/selenium/tests/*.java
sed -i'' -e 's|// DisableAnimations|disableAnimations();|g' ./src/test/java/com/mattermost/selenium/tests/*.java
sed -i'' -e 's|if (second >= 60) fail("timeout");|if (second >= 2) fail("timeout");|g' ./src/test/java/com/mattermost/selenium/tests/*.java
test: patch-files
mvn clean verify
test-chrome: patch-files
mvn -Dbrowser=chrome clean verify
test-firefox: patch-files
mvn -Dbrowser=firefox clean verify
test-all: patch-files
#mvn -Dbrowser=firefox clean verify
mvn -Dbrowser=chrome clean verify