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

Improve how RunConfiguration is set in the meta test #175

Open
mauricioaniche opened this issue May 27, 2023 · 6 comments
Open

Improve how RunConfiguration is set in the meta test #175

mauricioaniche opened this issue May 27, 2023 · 6 comments
Assignees
Labels
enhancement New feature or request Low priority

Comments

@mauricioaniche
Copy link
Contributor

Currently no RunConfiguration is set in the meta test. Each meta test then tries to find one, an exception happens, and we inject a default one.

First of all, there's no need for a default run configuration. If there's none, we should not even start. Second, we can skip this step then, when running meta tests.

@mauricioaniche mauricioaniche added enhancement New feature or request Low priority labels May 27, 2023
@FrancescoHamar
Copy link
Contributor

Hello! I would like to work on this issue with Tomasz Puczel (@puctom)

@mauricioaniche
Copy link
Contributor Author

Great! @puctom, post something here so I can assign you too!

@puctom
Copy link
Contributor

puctom commented Jul 21, 2023

i would like to work on this too :)

@mauricioaniche
Copy link
Contributor Author

I can't remember precisely what I meant with the description of this ticket, I'll try to dive a bit more. But if you debug the execution of a meta test, you'll see the exception when it comes to finding the Configuration.

@FrancescoHamar
Copy link
Contributor

Hello!
We have a doubt about this issue. You mention "Currently no RunConfiguration is set in the meta test. Each meta test then tries to find one, an exception happens, and we inject a default one". However, we believe that the run configuration is handled by the context and when the RunMetaTestsStep happens, if a default RunConfiguration is used, there won't be any meta tests in the first place. Could you help clear up a bit what you meant by the exception that we should avoid?

@mauricioaniche
Copy link
Contributor Author

IIRC, what I meant was that, when we are running a meta test, and then its execution gets to the GetRunConfigurationStep, a NoSuchElementException happens and then line 31 is executed, setting a default configuration. As a way to confirm that, put a debug point on line 31 (the line inside the catch block) and see if it ever gets executed.

If it does get executed, I would like to avoid that. It makes no sense to use a try/catch to handle a flow that we expect to happen. Somehow and somewhere we need to do "if this is a meta test, then, new DefaultRunConfiguration`.

(There might be a chance that this line isn't executed anymore, as we have made many changes since I opened up this ticket! If so, we close it!)

Let me know if that clarifies the issue!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Low priority
Projects
None yet
Development

No branches or pull requests

3 participants