Compare commits

...

2 Commits

Author SHA1 Message Date
Martin Kiragu 0b30357568 selenium json file 2023-03-03 07:23:50 +03:00
Martin Kiragu 034e9da69e conception acceptance test configurations 2023-03-03 07:23:13 +03:00
4 changed files with 44 additions and 9 deletions
+35 -6
View File
@@ -26,7 +26,7 @@ before_script:
- apt-get install -y libgd-dev - apt-get install -y libgd-dev
- apt-get install -y libgd-dev - apt-get install -y libgd-dev
# Install PDO MySQL extension # Install PDO MySQL extension
- docker-php-ext-install pdo_mysql - docker-php-ext-install pdo_mysql
#install php dependencies #install php dependencies
@@ -70,8 +70,8 @@ npm:
#building assets #building assets
building_assets: building_assets:
stage: building_assets stage: building_assets
# dependencies: # dependencies:
# - npm # - npm
script: script:
- npm install # Install npm dependencies - npm install # Install npm dependencies
- gulp build # Build assets - gulp build # Build assets
@@ -84,8 +84,8 @@ database:
services: services:
- name: mysql:8.0 - name: mysql:8.0
command: [ "--default-authentication-plugin=mysql_native_password" ] command: [ "--default-authentication-plugin=mysql_native_password" ]
#dependencies: #dependencies:
# - composer_php # - composer_php
script: script:
- composer install - composer install
- cp .env.example .env - cp .env.example .env
@@ -95,7 +95,7 @@ database:
rules: rules:
- if: '$CI_COMMIT_BRANCH =~ /.*/' - if: '$CI_COMMIT_BRANCH =~ /.*/'
#mysql #unit test
unit_test: unit_test:
stage: unit_test stage: unit_test
services: services:
@@ -117,4 +117,33 @@ unit_test:
#acceptance tests
acceptance_test:
stage: acceptance_test
services:
- name: mysql:8.0
command: [ "--default-authentication-plugin=mysql_native_password" ]
- selenium/standalone-chrome:latest
#dependencies:
# - database
script:
- npm install # Install npm dependencies
- gulp build # Build assets
- composer install
- cp .env.example .env
- php artisan key:generate
- php artisan migrate:fresh
- php artisan db:seed
- php artisan serve &
- vendor/bin/codecept run
artifacts:
when: always
paths:
- tests/_output
rules:
- if: '$CI_COMMIT_BRANCH =~ /.*/'
+9
View File
@@ -0,0 +1,9 @@
{
"default": {
"capabilities": {
"browserName": "chrome"
},
"port": 9515,
"path": "/wd/hub"
}
}
-1
View File
@@ -16,7 +16,6 @@ class AuthenticationTest extends TestCase
protected $loginRoute = 'api.account.authentication.authenticate.attempt'; protected $loginRoute = 'api.account.authentication.authenticate.attempt';
/** /**
* Test Authenticated Users can not Access the login page * Test Authenticated Users can not Access the login page
* TODO fix this test * TODO fix this test
-2
View File
@@ -10,8 +10,6 @@ class RegistrationTest extends TestCase
{ {
use RefreshDatabase; use RefreshDatabase;
/* public function test_create_invitation_request_test() /* public function test_create_invitation_request_test()
{ {