gajus / gajus/bugger

Make the unit test runable without requiring composer

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
CSS
Stars
75
Forks
7
PR merge metrics
No merged PRs in 30d

Description

Currently the unit tests fail if you don't install bugger via composer

```
Warning: require(/var/www/html/scott/tmp/bugger/tests/../vendor/autoload.php): failed to open stream: No such file or directory in /var/www/html/scott/tmp/bugger/tests/bootstrap.php on line 2

Fatal error: require(): Failed opening required '/var/www/html/scott/tmp/bugger/tests/../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/scott/tmp/bugger/tests/bootstrap.php on line 2
```

As the vendor directory isn't present if you don't use composer to install.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with tests/bootstrap.php, which currently requires vendor/autoload.php, and inspect how the unit tests are launched without Composer. Adjust the test setup so the suite can run when the vendor directory is absent, then verify that the unit tests no longer fail with the reported missing-file error.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
build-system, testing-qa
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.