Skip to content
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

jt400 mock coverage + native fixes #5812

Merged
merged 1 commit into from
Feb 28, 2024

Conversation

JiriOndrusek
Copy link
Contributor

fixes #5809

The mocked tests require quarkus.test.flat-class-path to be true. (default behavior for the tests)

New profile skip-mock-tests returns flat-class-path to false and disables all mocked tests.
Profile is not active by default and can be activated by property -Dskip-mock-tests=true for the execution.

Test coverage is quite small - there are tests to read/write for keyed data-queue and message-queue, and the test for the program call.

Mocked backend is not based on the real server, therefore the response are probably far from the real responses
This mocked tests could be refactored in the future to mimic real responses. Now it allows extension to be tested in the native mode (to some extent).

@JiriOndrusek
Copy link
Contributor Author

@jamesnetherton All changes are amended into the PR.

@zhfeng
Copy link
Contributor

zhfeng commented Feb 28, 2024

@JiriOndrusek need backport to 3.8.x?

@jamesnetherton
Copy link
Contributor

@jamesnetherton All changes are amended into the PR.

@JiriOndrusek I still see the /* A simple autogenerated test */ comments.

@JiriOndrusek
Copy link
Contributor Author

JiriOndrusek commented Feb 28, 2024

@jamesnetherton All changes are amended into the PR.

@JiriOndrusek I still see the /* A simple autogenerated test */ comments.

simple autogenerated test

Sorry for that, I fixed 1 place and there were others. I checked the PR now and there is no such occurrence anymore/

@JiriOndrusek
Copy link
Contributor Author

@JiriOndrusek need backport to 3.8.x?

Thanks for the reminder! I added the label.

@jamesnetherton jamesnetherton merged commit b449447 into apache:main Feb 28, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

jt400: add mock tests and make them work in native
4 participants