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

[Bug]: Runtime test exceptions are not thrown after using the generated main method for testable jar #40934

Closed
Dilhasha opened this issue Jul 5, 2023 · 0 comments · Fixed by #41210
Assignees
Labels
Priority/High Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Bug
Milestone

Comments

@Dilhasha
Copy link
Contributor

Dilhasha commented Jul 5, 2023

Description

$subject.
The program execution exits with only the below error without any detailed exceptions.
there are test failures

Was able to reproduce,

  • When configurable variable tokens were expired and there was a runtime exception.
  • For object mocking with test double, this is reproducible for only multi-module packages.

After using the runtime generated main method the error handling is not working as expected.

Steps to Reproduce

No response

Affected Version(s)

2201.6.0

OS, DB, other environment details and versions

No response

Related area

-> Runtime

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@Dilhasha Dilhasha added Type/Bug Priority/High Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime labels Jul 5, 2023
@Dilhasha Dilhasha changed the title [Bug]: Object mock related exceptions are not thrown after using the generated main method for testable jar [Bug]: Runtime test exceptions are not thrown after using the generated main method for testable jar Jul 10, 2023
@Nadeeshan96 Nadeeshan96 added this to the 2201.8.0 milestone Aug 18, 2023
@Nadeeshan96 Nadeeshan96 added the Reason/EngineeringMistake The issue occurred due to a mistake made in the past. label Aug 18, 2023
@HindujaB HindujaB modified the milestones: 2201.8.0, 2201.7.3, 2201.6.2 Sep 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority/High Reason/EngineeringMistake The issue occurred due to a mistake made in the past. Team/jBallerina All the issues related to BIR, JVM backend code generation and runtime Type/Bug
Projects
Archived in project
4 participants