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

Running the test suite #32

Closed
mark-gerarts opened this issue Oct 2, 2019 · 3 comments
Closed

Running the test suite #32

mark-gerarts opened this issue Oct 2, 2019 · 3 comments

Comments

@mark-gerarts
Copy link
Contributor

Could you provide some information on how to run the test suite? I can't seem to get the tests that use a database connection to work (I'm probably doing something wrong with Docker). It can be a useful addition to the docs as well!

@wolfy-j
Copy link
Contributor

wolfy-j commented Oct 2, 2019

Hi, I agree about adding it to docs, will do.

  1. Clone the repository
  2. go to tests directory (https://github.com/cycle/orm/tree/master/tests)
  3. docker-compose up - it will start the docker services with all the DBS (https://github.com/cycle/orm/blob/master/tests/docker-compose.yml)

To run the full test suite, from the root of the project ./vendor/bin/phpunit

Tests will run for about 7-12 mins depending on machine performance.

To run "quick" tests: ./vendor/bin/phpunit tests/ORM/Driver/SQLite - no need to start docker for this tests

will take about 4 seconds

@mark-gerarts
Copy link
Contributor Author

Ah yes, it works like a charm that way. I was trying to run stuff from within a container... Thanks!

@wolfy-j
Copy link
Contributor

wolfy-j commented Oct 4, 2019

The information has been added here: https://github.com/cycle/docs/blob/master/contributing.md

@wolfy-j wolfy-j closed this as completed Oct 4, 2019
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