[TASK] Configure path for acceptance tests 62/47662/4
authorSascha Egerer <sascha@sascha-egerer.de>
Thu, 14 Apr 2016 12:52:11 +0000 (14:52 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 14 Apr 2016 19:15:27 +0000 (21:15 +0200)
The codeception config has a configuration option
that points to the folder where the tests are stored.
This value does currently not point to the correct folder.

The path to the tests is currently added manually on each test
call which now can be dropped.

```
./bin/codecept run Acceptance \
 -c typo3/sysext/core/Build/AcceptanceTests.yml
 ```

Change-Id: I285b3623eddc457d3e02db7a9b83d6e88b7448f3
Resolves: #75612
Releases: master
Reviewed-on: https://review.typo3.org/47662
Reviewed-by: Dirk Jüttner <dirk.juettner@gmail.com>
Tested-by: Dirk Jüttner <dirk.juettner@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
.travis.yml
typo3/sysext/core/Build/AcceptanceTests.yml
typo3/sysext/core/Build/Configuration/Acceptance/acceptance.suite.yml [deleted file]
typo3/sysext/core/Tests/Acceptance.suite.yml [new file with mode: 0644]

index a361265..abf2cc0 100644 (file)
@@ -76,7 +76,7 @@ script:
         export typo3DatabaseHost="localhost";
         export typo3DatabaseUsername="root";
         export typo3DatabasePassword="";
-        ./bin/codecept run acceptance -c typo3/sysext/core/Build/AcceptanceTests.yml typo3/sysext/core/Tests/Acceptance --debug
+        ./bin/codecept run Acceptance -c typo3/sysext/core/Build/AcceptanceTests.yml --debug
     fi
   - >
     if [[ "$PHP_LINT" == "yes" ]]; then
index 900449d..3a7bd73 100644 (file)
@@ -1,6 +1,6 @@
 actor: Tester
 paths:
-  tests: Configuration/Acceptance
+  tests: ../Tests
   log: ../../../../typo3temp/var/tests
   data: Configuration/Acceptance/Data
   support: Configuration/Acceptance/Support
diff --git a/typo3/sysext/core/Build/Configuration/Acceptance/acceptance.suite.yml b/typo3/sysext/core/Build/Configuration/Acceptance/acceptance.suite.yml
deleted file mode 100644 (file)
index ab03114..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-class_name: AcceptanceTester
-modules:
-  enabled:
-    - WebDriver
-    - \Helper\Acceptance
-    - Asserts
-  config:
-    WebDriver:
-      url: http://localhost:8000/typo3temp/var/tests/acceptance
-      browser: phantomjs
-      port: 4444
-      window_size: 1440x570
-      wait: 1
-      restart: true
-env:
-  firefox:
-    modules:
-      config:
-        WebDriver:
-          browser: firefox
diff --git a/typo3/sysext/core/Tests/Acceptance.suite.yml b/typo3/sysext/core/Tests/Acceptance.suite.yml
new file mode 100644 (file)
index 0000000..ab03114
--- /dev/null
@@ -0,0 +1,20 @@
+class_name: AcceptanceTester
+modules:
+  enabled:
+    - WebDriver
+    - \Helper\Acceptance
+    - Asserts
+  config:
+    WebDriver:
+      url: http://localhost:8000/typo3temp/var/tests/acceptance
+      browser: phantomjs
+      port: 4444
+      window_size: 1440x570
+      wait: 1
+      restart: true
+env:
+  firefox:
+    modules:
+      config:
+        WebDriver:
+          browser: firefox