-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
(WIP) Add tck tests #1
Conversation
AsyncAPI Object AsyncAPI Version String Contact Object Identifier Info Object License Object Servers Object
Server Object Server Variable Object Channels Object
Channel Item Object Operation Object Operation Trait Object
Channel Bindings Object Message Bindings Object Operation Bindings Object Parameter Object Parameters Object Server Bindings Object
Message Object
External Documentation Object Message Trait Object Tag Object
Correlation ID Object Security Requirement Object Security Scheme Object Specification Extensions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff, @jstoiko 👏
I left some comments. In many cases, test files are too large containing irrelevant information for the test that could be avoided. It's been the reason for many of the mistakes. We should aim for the minimum needed to test that a specific thing is failing. What do you think?
Also, I'd not add more tests to this PR. Let's fix the existing ones and merge the PR. We can then iterate in smaller chunks 😅
tests/asyncapi-2.0/AsyncAPI Version String/valid-major-minor.yaml
Outdated
Show resolved
Hide resolved
tests/asyncapi-2.0/Channel Bindings Object/amqp/invalid-exchange-name-length.yaml.yaml
Show resolved
Hide resolved
tests/asyncapi-2.0/Channel Bindings Object/amqp/invalid-queue-name-length.yaml
Show resolved
Hide resolved
tests/asyncapi-2.0/Channel Bindings Object/ws/invalid-extra-properties.yaml
Outdated
Show resolved
Hide resolved
tests/asyncapi-2.0/Message Trait Object/invalid-defines-traits.yaml
Outdated
Show resolved
Hide resolved
tests/asyncapi-2.0/Message Trait Object/invalid-duplicate-tags.yaml
Outdated
Show resolved
Hide resolved
tests/asyncapi-2.0/Message Trait Object/invalid-headers-type.yaml
Outdated
Show resolved
Hide resolved
tests/asyncapi-2.0/Parameters Object/invalid-not-matching-param-name.yaml
Outdated
Show resolved
Hide resolved
@fmvilas thanks for the review! I've fixed most of issues you reported and left responses to some of your comments. |
Use make (on MacOS, upgrade to gmake:
brew install gmake
) to run the tests and generate a HTML report:After adding, moving or deleting TCK test files, the manifest needs to be regenerated for the tests to be visible in the report:
Parsers currently being tested are
amf-client-js
andasyncapi-parser
.After PR is merged:
add_tck_tests
branch withmaster