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 tests locally #2553

Open
ozh opened this issue Sep 25, 2019 · 0 comments

Comments

@ozh
Copy link
Member

commented Sep 25, 2019

Hey there

Now that tests are all in the main repo, we should make sure someone running tests locally will not lose data. I mean, I for one just lost all data on my dev box just because I wanted to test tests :)

YOURLS-unit-tests used to mention:

  • Create an empty MySQL database and user. Do not use an exisiting database or you will lose data, guaranteed.
  • Copy yourls-tests-config-sample.php to yourls-tests-config.php, edit it and include your database name, user and password.

I think we should provide such a config file for tests, and some sort of checks to make sure the average Ozh Joe won't erase all their data. Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.