Closed jfusion closed 3 years ago
We already have .gitattributes files for most of the repos, they just need updates if we want to exclude this stuff.
But is this something that would be acceptable? if so i would be more than happey to make pull requests
Can't think of a reason why it wouldn't be.
ok i'll put it on my todo list =) for next week =)
I assume if the .gitattributes is not there i can add it correct?
Correct. And thanks :-)
as a side note we might want this as well .. https://getcomposer.org/doc/04-schema.md#autoload-dev
moving the autoloader for "tests" in to in autoload-dev?
Ya, that'd be a good idea too. I didn't even know about the autoload-dev
param honestly.
me neather i am new to composer. we/i have starter making jfusion so it can be used standalone. still work in progress.
should i be adding files like phpunit.xml.dist also?
I assume we need README.md and LICENSE
also i need a but of guidance on what to exclude from cache and session
session also has _Tests and build
cache has build..
-Thanks
Basically, if it isn't production code, the license, or the README, it's safe to assume that it can be excluded.
I ask here because i do not know cache and session I don't know if they are build/_Tests is production code.
Production code is all under /src aside from a couple of packages with open pull requests to restructure from PSR-0 to PSR-4.
Hello Once again sorry for bombarding you !!!
I am kind of new to phpunit
I ran it on application after all the changes i did i know i did not really "change" anything, but still ...
is this a valid result: Time: 6 seconds, Memory: 10.50Mb
OK, but incomplete or skipped tests! Tests: 205, Assertions: 319, Incomplete: 3, Skipped: 13.
Process finished with exit code 0
-Thanks
Yes, that's valid. We have tests flagged in there as skipped or incomplete. It would be an issue if there were test errors or failures.
ok, I will start testing and commit and creating pull request's =)
ok done testing, i have a few results i need help with. (sorry !)
Data returns: (Done 22 / 45) test__construct_scalar Process finished with exit code 255
Database returns (Done 236 / 623) testSetDboWithBadInput Process finished with exit code 255
-Thanks!!!!
Can you check your PHP error logs for any messages and ensure your reporting is set to not hide anything? Seems like there's an error that's being masked.
no errors logged. =( not sure what is wrong.
also i forgot about this falior: PHPUnit_Framework_ExpectationFailedException : Failed asserting that exception of type "\RuntimeException" is thrown.
Hello, not sure if there should be a better place to talk about this.
anyhow it goes for all the repos.. (i think, tho i have not looked at all of them..)
http://stackoverflow.com/questions/17049313/how-to-ignore-directories-with-composer
Given that there are no ways to do this in composer, could this workaround be added? normally development would not be using composer anyway and the so if the testing code could be excluded that would be nice.
----- quote from above link -----
When you run the update or install command with --prefer-dist, Composer tries to download the archive on github. You can remove the test directory from the archives by putting this in a .gitattributes file in the root directory of your project:
Tests/ export-ignore
Composer will only use the tags on github. Just temporary remove the tests directory when creating a tag will also do the trick.
if i should raice this in another way/location let me know.
-Thanks