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

Add a docker-compose setup to allow project contributors to quickly run the test suite on their local machines. #762

Conversation

ArclightHub
Copy link
Contributor

@ArclightHub ArclightHub commented Nov 27, 2023

Whats changed?

  • Added a docker-compose setup to allow project contributors to quickly run the test suite on their local machines without needing to install the test stack onto their environment.

How do I run the tests in the new docker container?

  • Simply run clear && docker-compose up -d && docker logs -f scribe_app_1 and the tests are run and results printed into your terminal!

What should the expected output in my terminal be if the tests are passing?

  • For the lint step (PHPStan) you should see something like this
composer lint
> phpstan analyse -c ./phpstan.neon src camel --memory-limit 1G
 111/111 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%


 [OK] No errors 
  • For the test step (PHPUnit) you should see something like this
  Tests:  245 passed
  Time:   2.24s

  Cov:    79.55%

…suite on their local machines without needing to install the test stack onto the environment.
@ArclightHub ArclightHub changed the title Add a docker-compose setup to allow others to quickly run the test suite on their local machines. Add a docker-compose setup to allow project contributors to quickly run the test suite on their local machines. Nov 27, 2023
@shalvah shalvah merged commit 9fca1f0 into knuckleswtf:master Dec 4, 2023
5 of 6 checks passed
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

Successfully merging this pull request may close these issues.

2 participants