-
Notifications
You must be signed in to change notification settings - Fork 234
Rearm of tests #589
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
base: master
Are you sure you want to change the base?
Rearm of tests #589
Conversation
yankos
commented
May 22, 2025
- Update GitHub action;
- Rearm tests of serializators: only scalar data types should be tested;
- Improve a documentation how to run test manualy;
- The Codecoverge integration.
ahh, nice, thanks for contributing! I had a look, just 1 question (curious): you don't like essentially, could you explain why the PR removes these tests?
|
I would like to keep it, but I removed BigInt because it cannot be serialized directly by JSON. So I think it's better to keep only types that can be serialized directly (not just for JSON). |
yes, true, but then how do you deal with e.g. blockchain stuff (which requires big ints) without faking with strings or what, and msgpack and cbor support it - and those are preferred anyways (IMO).
why use the worst/least capable as reference and basically make all other follow that?
yep (IMO). I would prefer keeping big int, and then of course keep the relevant tests as well. I can't merge a PR that removes it because AutobahnJS is used with blockchain stuff (at least in the context of Crossbar.io) .. pls keep all tested values exactly as is in
did you test XBR? unlikely, it's yet another level of complexity. but I'd be worried about this .. unfort., I'm working on sth completely different right now, can't test myself, so I would opt for a very conservative approach "checking" a PR - only absolutely obvious things, or stuff moving deps forward, .. |
another way to say what I mean: pls keep and test the full power/features of CBOR. I don't care much about JSON. well. should continue to work of course, but feature parity between all serializers is not a goal. use CBOR, dump JSON, is the sane thing IMO anyways for app developers |
also, after relooking: pls keep next:
I know, this might all sound strange, strict or annoying. well, JS is annoying, so I like to keep things as static as possible - unless you can prove there is a bug of course! is there a bug? sorry, and thanks a lot for contributing, pls don't feel offended or put off or sth! |
I did not even think about this :) But let's step by step.
c8 is a code coverage tool. I removed the Codecov.io integration. However, I would like to keep c8 as an optional tool. It's useful when you're working with a library and don't know every line in the source code.
Maybe I am missing something, but these keys are instance/host-specific. So I can't run the tests anywhere (except your |