Welcome Guest, Not a member yet? Register   Sign In
Is it possible to run CI3 unit tests without sudo privileges?
#9

(03-21-2023, 05:24 PM)kenjis Wrote: ci-phpunit-test replaces some files in CI3,
because CI3 app is basically untestable without modifications.
All these files are located in tests/_ci_phpunit_test/replacing/

Do you mean to say that using kenjis/ci-phpunit-test requires that I replace core CodeIgniter system files? Does this happen automatically when you run ci-phpunit-test/install.php? Or must I replace these files manually? I just downloaded the latest release, CI 3.1.13, from here and ran your install instructions here and I can't see that any changes have been made to the native CodeIgniter system files (CodeIgniter.php, Common.php, etc.). The installer does report a lot of files being copied, but my git repo reports no file changes after I run your install.php.

(03-21-2023, 05:24 PM)kenjis Wrote: And if you want to work with CI3 develop version, you need to update these files.
See https://github.com/kenjis/ci-phpunit-test/pull/140
The PR may show you what you do.

Hmmm...I don't think I'm the right person to update ci-phpunit-test to work with the develop branch of CI3 (3.2-dev). I've only just attempted to use it and don't have a feel for how it works -- or why are there so many files?. It seems to me like quite an involved installation just to do some unit testing. Am I correct in thinking that most of those 650+ PHP files that you install are unit tests, and that CI3 doesn't come with any unit tests of its own?

Incidentally, I just noticed that there are no releases for CI3 on github. Seems like an oversight by the repo maintainers.
Reply


Messages In This Thread
RE: Is it possible to run CI3 unit tests without sudo privileges? - by sneakyimp - 03-22-2023, 12:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB