Skip to content

Commit

Permalink
Release 1.8-RC2
Browse files Browse the repository at this point in the history
Small fixes and changes for AWS Devicefarm execution
  • Loading branch information
martinschneider authored Feb 12, 2020
1 parent de067f4 commit 0515d9f
Show file tree
Hide file tree
Showing 16 changed files with 28 additions and 26 deletions.
2 changes: 1 addition & 1 deletion justtestlah-applitools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>qa.justtestlah</groupId>
<artifactId>justtestlah-parent</artifactId>
<version>1.8-SNAPSHOT</version>
<version>1.8-RC2</version>
</parent>
<licenses>
<license>
Expand Down
4 changes: 2 additions & 2 deletions justtestlah-awsdevicefarm/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>qa.justtestlah</groupId>
<artifactId>justtestlah-parent</artifactId>
<version>1.8-SNAPSHOT</version>
<version>1.8-RC2</version>
</parent>
<licenses>
<license>
Expand Down Expand Up @@ -98,7 +98,7 @@
<!-- This is only used for the integration test. We use an old version
here to ensure it is in the Maven repository (the old version will definitely
be on Maven central). -->
<justtestlah.version>1.7-RC5</justtestlah.version>
<justtestlah.version>1.8-RC1</justtestlah.version>
</properties>
<build>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ public void testCreateTestSpec() throws IOException, URISyntaxException {
new File(new TestSpecFactory(properties).createTestSpec()), StandardCharsets.UTF_8);

for (int i = 0; i < expected.size(); i++) {
assertThat(expected.get(i)).isEqualTo(actual.get(i));
assertThat(expected.get(i))
.as(String.format("check line %d", i + 1))
.isEqualTo(actual.get(i));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ phases:
fi;
done;
test:
commands:
# Prepare the test code
- cd $DEVICEFARM_TEST_PACKAGE_PATH
- echo "Extracting JAR files"
Expand Down Expand Up @@ -85,9 +83,11 @@ phases:
- echo "cloudprovider=local" >> justtestlah.properties
- cat justtestlah.properties

test:
commands:
# Finally...
- echo "Executing test scenarios"
- java -Dappium.screenshots.dir=$DEVICEFARM_SCREENSHOT_PATH -Djusttestlah.properties=$(pwd)/justtestlah.properties -Dlogback.configurationFile=classes/logback-aws.xml -cp classes:dependency-jars/* org.junit.runner.JUnitCore TestRunner
- java -Dappium.screenshots.dir=$DEVICEFARM_SCREENSHOT_PATH -DjtlProps=$(pwd)/justtestlah.properties -Dlogback.configurationFile=classes/logback-aws.xml -cp classes:dependency-jars/* org.junit.runner.JUnitCore TestRunner

post_test:
commands:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ phases:
fi;
done;
test:
commands:
# Prepare the test code
- cd $DEVICEFARM_TEST_PACKAGE_PATH
- echo "Extracting JAR files"
Expand Down Expand Up @@ -85,9 +83,11 @@ phases:
- echo "cloudprovider=local" >> justtestlah.properties
- cat justtestlah.properties

test:
commands:
# Finally...
- echo "Executing test scenarios"
- java -Dappium.screenshots.dir=$DEVICEFARM_SCREENSHOT_PATH -Djusttestlah.properties=$(pwd)/justtestlah.properties -Dlogback.configurationFile=classes/logback-aws.xml -cp classes:dependency-jars/* org.junit.runner.JUnitCore TestRunner
- java -Dappium.screenshots.dir=$DEVICEFARM_SCREENSHOT_PATH -DjtlProps=$(pwd)/justtestlah.properties -Dlogback.configurationFile=classes/logback-aws.xml -cp classes:dependency-jars/* org.junit.runner.JUnitCore TestRunner

post_test:
commands:
Expand Down
2 changes: 1 addition & 1 deletion justtestlah-browserstack/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>qa.justtestlah</groupId>
<artifactId>justtestlah-parent</artifactId>
<version>1.8-SNAPSHOT</version>
<version>1.8-RC2</version>
</parent>
<licenses>
<license>
Expand Down
2 changes: 1 addition & 1 deletion justtestlah-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>qa.justtestlah</groupId>
<artifactId>justtestlah-parent</artifactId>
<version>1.8-SNAPSHOT</version>
<version>1.8-RC2</version>
</parent>
<licenses>
<license>
Expand Down
2 changes: 1 addition & 1 deletion justtestlah-demos/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<phase>prepare-package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
Expand Down
5 changes: 5 additions & 0 deletions justtestlah-demos/src/test/java/TestRunner.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import qa.justtestlah.junit.JustTestLahTest;

@SuppressWarnings("PMD.DefaultPackage")
// this class uses the default package for convenient usage
public class TestRunner extends JustTestLahTest {}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ phases:
fi;
done;
test:
commands:
# Prepare the test code
- cd $DEVICEFARM_TEST_PACKAGE_PATH
- echo "Extracting JAR files"
Expand Down Expand Up @@ -85,9 +83,11 @@ phases:
- echo "cloudprovider=local" >> justtestlah.properties
- cat justtestlah.properties

test:
commands:
# Finally...
- echo "Executing test scenarios"
- java -Dappium.screenshots.dir=$DEVICEFARM_SCREENSHOT_PATH -Djusttestlah.properties=$(pwd)/justtestlah.properties -Dlogback.configurationFile=classes/logback-aws.xml -cp classes:dependency-jars/* org.junit.runner.JUnitCore TestRunner
- java -Dappium.screenshots.dir=$DEVICEFARM_SCREENSHOT_PATH -DjtlProps=$(pwd)/justtestlah.properties -Dlogback.configurationFile=classes/logback-aws.xml -cp classes:dependency-jars/* org.junit.runner.JUnitCore TestRunner

post_test:
commands:
Expand Down
2 changes: 1 addition & 1 deletion justtestlah-galen/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>qa.justtestlah</groupId>
<artifactId>justtestlah-parent</artifactId>
<version>1.8-SNAPSHOT</version>
<version>1.8-RC2</version>
</parent>
<licenses>
<license>
Expand Down
2 changes: 1 addition & 1 deletion justtestlah-mobile-tools/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>qa.justtestlah</groupId>
<artifactId>justtestlah-parent</artifactId>
<version>1.8-SNAPSHOT</version>
<version>1.8-RC2</version>
</parent>
<licenses>
<license>
Expand Down
2 changes: 1 addition & 1 deletion justtestlah-quickstart/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>qa.justtestlah</groupId>
<artifactId>justtestlah-parent</artifactId>
<version>1.8-SNAPSHOT</version>
<version>1.8-RC2</version>
</parent>
<artifactId>justtestlah-quickstart</artifactId>
<name>JustTestLah! Quickstart</name>
Expand Down
2 changes: 1 addition & 1 deletion justtestlah-visual/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>qa.justtestlah</groupId>
<artifactId>justtestlah-parent</artifactId>
<version>1.8-SNAPSHOT</version>
<version>1.8-RC2</version>
</parent>
<licenses>
<license>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>qa.justtestlah</groupId>
<artifactId>justtestlah-parent</artifactId>
<version>1.8-SNAPSHOT</version>
<version>1.8-RC2</version>
<name>JustTestLah!</name>
<packaging>pom</packaging>
<description>JustTestLah! is a JAVA test framework targeting projects that support multiple platforms, in particular Web, Android and iOS. It follows a BDD approach and allows testing against all platforms using the same feature files. JustTestLah's main aim is to make the configuration and the actual test code as easy as possible.</description>
Expand Down

0 comments on commit 0515d9f

Please sign in to comment.