-
Notifications
You must be signed in to change notification settings - Fork 83
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
test coverage seems to be very limited #35
Comments
I have been using Stryker Mutator on some other projects, highly recommended we consider using it for xmldom. |
I would personally be very open to switching from proof to a well-known test library or framework. I generally like to use Jest in new projects since it just works for both normal JavaScript projects and React Native. I would also not mind adding the new test library before dropping use of the existing |
I'm very interested in supporting this. any specific tasks/what would be a good first test to have (in a new test framework)? |
I would start with adding test coverage for the cases in the description. I think it would be ideal if someone could get Stryker Mutator working with this project. In terms of test framework, I would probably favor Jest in first place. Jest seems to be used almost always in React Native projects, used in Prettier, and I have come to really like using it. Tap also looks really nice, it looks like it starts with a relatively simple core based on Tape and can be extended with some nicer reporters. |
Wow, I just realize that all the code in the The only test that run as part of |
I think going for |
I just found jindw/xmldom#138 saying there is an issue with using xmldom in combination with |
I digged a bit into the details of testing SAX and existing sax parsers. It could be worth wile to attempt jindw/xmldom/issues/16 (but there are some isues with it that make it hard). Which brings me to the (big) question if it's a good idea to maintain both a(nother) SAX parser and all the DOM related things in this project. (I have done the groundwork for comparing different libraries in an efficient manner before, this could be extended/replicated to compare some SAX parsers with our implementation.) But I think at least having "tons of" fixtures that are checked without writing "tons of" manual tests is a good idea to verify compatibility with DOM specs.
Any thoughts on this? |
Thanks @karfau. I would definitely favor discussing Jest, library comparisons, and DOM specs in separate issues. There may be some better libraries out there, but I think some projects will continue using xmldom for quite a while (if it ain't broke ...). I got into maintaining the xmldom package since it is used by plist and hence by cordova-ios packages. |
npm test
continues to succeed if I make some non-sense edits in my work area:I think we need to massively improve the test suite before we can do much more cleanup work.
The text was updated successfully, but these errors were encountered: