Skip to content

Fix test runner failure on PHP tutorials #630

Description

@jcandan

Describe the bug

Getting a Test Runner Failed message on a PHP project.

To Reproduce

Requires PHP 8.2+ and Composer.

Steps to reproduce the behavior:

  1. Open an empty folder in VS Code
    mkdir empty-project1
    code empty-project1
    
  2. Run CodeRoad: Start from the Command Pallete.
  3. Hit Start New Tutorial
  4. Choose URL, and supply https://raw.githubusercontent.com/jcandan/learn-php-basics/refs/heads/main/tutorial.json
  5. Open terminal, and in this empty project folder, run git init.
  6. Hit Start on the tutorial
  7. Supply an empty index.html file, and hit Run

See the Test Runner Failed message.

Expected behavior

To see that the solution should have passed:

  1. Clone the https://github.com/jcandan/learn-php-basics project locally
  2. Checkout the v0.1.0 branch, you'll be on the 1.1S solution commit
  3. Run cd .stack-elevate/ && composer install && ./vendor/bin/phpunit to prove the test runner should have worked

The TAP output shows that the test does pass.

Desktop (please complete the following information):

  • Platfrom: MacBook Pro
  • OS: macOS Sequoia
  • Version 15.3

Node:

  • Version v20.16.0

Git:

  • Version 2.40.0

PHP:

  • Version 8.4.3

Composer:

  • Version 2.8.5

PHPUnit:

  • Version 11.5.6
  • nikeee/phpunit-tap TAP Package required by INIT commit
  • The phpunit.xml configuration ensures the the TAP output
  • The config.testRunner.args.tap required configuration is blank since it is handled by the XML configuration.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions