From 64646bfe2f60ee4c708320ebd55f568b52ae6cad Mon Sep 17 00:00:00 2001 From: Michal Krzyzanowski Date: Fri, 7 Dec 2018 15:42:01 +0100 Subject: [PATCH] Tests switched to 2.0.1; added travis compilation script and updated README file --- .gitignore | 1 + .travis.yml | 14 ++++++++++++++ Aem64/build.gradle | 5 ++--- README.md | 24 +++++++++++++++++++++--- 4 files changed, 38 insertions(+), 6 deletions(-) create mode 100644 .gitignore create mode 100644 .travis.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..485dee6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.idea diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e67a70f --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: java +jdk: + - oraclejdk8 + +addons: + apt: + packages: + - oracle-java8-installer + +install: true + +sudo: false +script: + - gradlew clean assemble diff --git a/Aem64/build.gradle b/Aem64/build.gradle index f71dae5..580c64b 100644 --- a/Aem64/build.gradle +++ b/Aem64/build.gradle @@ -17,7 +17,7 @@ apply plugin: 'io.qameta.allure' sourceCompatibility = 1.8 -def bobcatVersion = "2.0.0-SNAPSHOT" +def bobcatVersion = "2.0.1" repositories { mavenLocal() @@ -31,7 +31,6 @@ dependencies { compile group: 'com.cognifide.qa.bb', name: 'bb-aem-64', version: bobcatVersion } - def profiles = [ 'firefox' : 'firefox' ] @@ -67,4 +66,4 @@ allure { useJUnit5 { version = '2.7.0' } -} \ No newline at end of file +} diff --git a/README.md b/README.md index 766cf0a..02070d9 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,24 @@ # Bobcat AEM tests Contains integration tests and examples for Bobcat's AEM modules. ->:warning: **Important** :warning: -> ->Tests in this repo are still under development to be aligned with Bobcat 2.0 - for now to make them work, you need to have a working AEM instance and should have locally compiled [Bobcat sources](https://github.com/Cognifide/bobcat) from the `2.0.0-develop` branch. +Each folder contains tests for specific AEM version. + +# Building and running tests + +## Prerequisites +- running instance of AEM in correct version + - instance should be available at localhost:4502 with default user and password +- JDK 1.8 +- Mozilla Firefox and Geckodriver added to PATH + +## Building the project +Run the following: +``` +./gradlew clean assembly +``` + +## Running tests +Run the following: +``` +./gradlew clean test +```