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

Unit Testing #28

Open
hashmich opened this issue Feb 11, 2019 · 3 comments
Open

Unit Testing #28

hashmich opened this issue Feb 11, 2019 · 3 comments

Comments

@hashmich
Copy link
Owner

Yet, no tests have been set up at all.
Investigation on appropriate framework starts now.

@hashmich
Copy link
Owner Author

Building upon phpUnit 3.7.38 as the testing framework, as compatibility already given in the cakePhp framework.
Setting up the environment required creating a fork of the test framework, which fixes errors not being thrown from prior php versions: https://github.com/hashmich/phpUnit

@hashmich
Copy link
Owner Author

When running tests on CLI, it might complain about the missing MySql driver. Php CLI is apart from the php running on Apache and possibly using a different php version, thus running tests in the browser can give different results.
This issue can be resolved by reinstalling php-mysql (use correct php CLI version, eg. php7.2-mysql)

@hashmich
Copy link
Owner Author

hashmich commented Dec 5, 2019

Test coverage in parts has been achieved for DHRC-Core in API development.

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

1 participant