Skip to content

Commit e1fcbea

Browse files
authored
Merge pull request #1348 from fredden/feature/phpt-tests
Move BashUnit tests to another directory
2 parents 104ac00 + dad6f35 commit e1fcbea

17 files changed

+100
-100
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
scripts/ export-ignore
1010
src/Standards/**/Tests/ export-ignore
1111
tests/Core/**/ export-ignore
12-
tests/EndToEnd/**/ export-ignore
12+
tests/EndToEndBash/**/ export-ignore
1313
.cspell.json export-ignore
1414
.gitattributes export-ignore
1515
.gitignore export-ignore

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,13 +405,13 @@ To install bashunit, follow the [installation guide](https://bashunit.typeddevs.
405405

406406
You can then run the bashunit tests on Linux/Mac/WSL, like so:
407407
```bash
408-
./lib/bashunit -p tests/EndToEnd
408+
./lib/bashunit -p tests/EndToEndBash
409409
```
410410

411411
> Note: these tests will not run in the Windows native CMD shell. When on Windows, either use WSL or use the "git bash" shell.
412412
413413
When writing end-to-end tests, please use fixtures for the "files under scan" to make the tests stable.
414-
These fixtures can be placed in the `tests/EndToEnd/Fixtures` subdirectory.
414+
These fixtures can be placed in the `tests/EndToEndBash/Fixtures` subdirectory.
415415

416416

417417
### Submitting Your Pull Request

.github/workflows/end-to-end-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ jobs:
5757
5858
- name: "Run bashunit tests"
5959
shell: bash
60-
run: "./lib/bashunit -p tests/EndToEnd"
60+
run: "./lib/bashunit -p tests/EndToEndBash"

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ vendor/
1414
/tests/Standards/sniffStnd.xml
1515
/tests/Core/Util/ExitCode/Fixtures/ExitCodeTest/*.fixed
1616
/tests/Core/Util/ExitCode/Fixtures/ExitCodeTest/phpcs.cache
17-
/tests/EndToEnd/Fixtures/*.fixed
17+
/tests/EndToEndBash/Fixtures/*.fixed

.shellcheckrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ shell=bash
22
color=always
33

44
external-sources=false
5-
source-path=/tests/EndToEnd
5+
source-path=/tests/EndToEndBash

phpcs.xml.dist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<exclude-pattern>*/src/Standards/*/Tests/*\.inc$</exclude-pattern>
1414
<exclude-pattern>*/tests/Core/*/*\.inc$</exclude-pattern>
1515
<exclude-pattern>*/tests/Core/*/Fixtures/*\.php$</exclude-pattern>
16-
<exclude-pattern>*/tests/EndToEnd/Fixtures/*\.inc$</exclude-pattern>
16+
<exclude-pattern>*/tests/EndToEndBash/Fixtures/*\.inc$</exclude-pattern>
1717

1818
<arg name="basepath" value="."/>
1919
<arg name="colors"/>

tests/EndToEnd/exit_code_test.sh

Lines changed: 0 additions & 73 deletions
This file was deleted.

tests/EndToEnd/Fixtures/ClassOneWithoutStyleError.inc renamed to tests/EndToEndBash/Fixtures/ClassOneWithoutStyleError.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/HEAD/licence.txt BSD Licence
88
*/
99

10-
namespace PHP_CodeSniffer\Tests\EndToEnd\Fixtures;
10+
namespace PHP_CodeSniffer\Tests\EndToEndBash\Fixtures;
1111

1212
class ClassOneWithoutStyleError
1313
{

tests/EndToEnd/Fixtures/ClassTwoWithoutStyleError.inc renamed to tests/EndToEndBash/Fixtures/ClassTwoWithoutStyleError.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/HEAD/licence.txt BSD Licence
88
*/
99

10-
namespace PHP_CodeSniffer\Tests\EndToEnd\Fixtures;
10+
namespace PHP_CodeSniffer\Tests\EndToEndBash\Fixtures;
1111

1212
class ClassTwoWithoutStyleError
1313
{

tests/EndToEnd/Fixtures/ClassWithStyleError.inc renamed to tests/EndToEndBash/Fixtures/ClassWithStyleError.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @license https://github.com/PHPCSStandards/PHP_CodeSniffer/blob/HEAD/licence.txt BSD Licence
88
*/
99

10-
namespace PHP_CodeSniffer\Tests\EndToEnd\Fixtures;
10+
namespace PHP_CodeSniffer\Tests\EndToEndBash\Fixtures;
1111

1212
class ClassWithStyleError
1313
{

0 commit comments

Comments
 (0)