Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I run the tests? #60

Closed
jpscharf opened this issue Apr 2, 2020 · 1 comment
Closed

How do I run the tests? #60

jpscharf opened this issue Apr 2, 2020 · 1 comment

Comments

@jpscharf
Copy link
Contributor

jpscharf commented Apr 2, 2020

How do you setup an run the test?

Trying to run tests…

  1. Checkout the repository.
  2. Run composer install
  3. phpunit is not a dependency
  4. composer require -dev phpunit:^8
  5. vendor/bin/phpunit
  • PHP Warning: require(/Users/jscharf/Workspace/test/StringBladeCompiler-fork/tests/../../../vendor/autoload.php): failed to open stream: No such file or directory in /Users/jscharf/Workspace/test/StringBladeCompiler-fork/tests/bootstrap.php on line 15
  1. So I modify tests/bootstrap.php changing require __DIR__.'/../../../vendor/autoload.php'; -> `require DIR.'/../vendor/autoload.php';
  2. vendor/bin/phpunit
  • HP Fatal error: Uncaught Error: Class 'Wpb\String_Blade_Compiler\Tests\Blade\AbstractBladeTestCase' not found in /Users/jscharf/Workspace/test/StringBladeCompiler-fork/tests/View/Blade/BladeAppendTest.php:5

  • Are the tests up tp date?

  • How am I supposed to run them?

@TerrePorter
Copy link
Owner

I never got all the tests working actually, not much of a TDD developer, although i should be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants