Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit e7f4e8b

Browse files
committed
fixing running tests from different dirs
1 parent 3033e5c commit e7f4e8b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# PHPUnit Wrapper
22

3+
Builds:
4+
5+
* 6.0 [![Build Status](https://travis-ci.org/Codeception/phpunit-wrapper.svg?branch=6.0)](https://travis-ci.org/Codeception/phpunit-wrapper)
6+
* 7.0 [![Build Status](https://travis-ci.org/Codeception/phpunit-wrapper.svg?branch=7.0)](https://travis-ci.org/Codeception/phpunit-wrapper)
7+
38
Codeception heavily relies on PHPUnit for running and managing tests.
49
Not all PHPUnit classes fit the needs of Codeception, that's why they were extended or redefined.
510

RoboFile.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ public function prepare()
2020

2121
public function test($params)
2222
{
23-
return $this->_exec('./vendor/bin/codecept run -c vendor/codeception/codeception ' . $params);
23+
return $this->taskExec('/vendor/bin/codecept run ' . $params)
24+
->dir(__DIR__ .'/vendor/codeception/codeception')
25+
->run();
2426
}
2527
}

0 commit comments

Comments
 (0)