Skip to content

Commit

Permalink
Improved tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rahularyan committed Apr 5, 2018
1 parent 29bfcc2 commit 06d25a1
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Expand Up @@ -42,7 +42,7 @@ before_script:
- mysql -e 'create database apwploader;'

- sudo apt-get install git
- composer require lucatume/wp-browser ^1.21
- composer install
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- screen -d -m java -Dwebdriver.chrome.driver=chromedriver -jar selenium-server-standalone-3.8.1.jar -port 4444 2>&1 &
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -10,6 +10,6 @@
],
"require": {},
"require-dev": {
"lucatume/wp-browser": "^1.21"
"lucatume/wp-browser": "^2"
}
}
108 changes: 101 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/bin/local.bat
Expand Up @@ -10,7 +10,7 @@ cd /d "D:\xampp2\htdocs\aptest"
call wp plugin activate anspress-question-answer/anspress-question-answer.php
call wp theme activate twentytwelve
cd /d "D:\xampp2\htdocs\anspress\wp-content\plugins\anspress-question-answer"
call codecept run activator pluginCept --steps --debug
call codecept run ui --steps --debug
@ECHO OFF
FOR /F "tokens=5 delims= " %%P IN ('netstat -ano ^| findstr 4444') DO (
if /i not "%%P" == "0" (
Expand Down
1 change: 1 addition & 0 deletions tests/wpunit/AjaxHooksTest.php
Expand Up @@ -8,6 +8,7 @@ class AjaxHooksTest extends \Codeception\TestCase\WPAjaxTestCase{
public $current_post;

public function setUp() {
include_once str_replace( 'includes/../data', '', DIR_TESTDATA ) . '/includes/exceptions.php';

// before
parent::setUp();
Expand Down

0 comments on commit 06d25a1

Please sign in to comment.