-
Notifications
You must be signed in to change notification settings - Fork 4
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
Restore multi-language tests set by env vars #713
Comments
Our former method of creating language tests may need to change because of ALKilnInThePlayground. Currently we copy existing That said, I'm not exactly sure how to handle this because I'm not sure how we access re-running the Scenario. Ideas are welcome. [We can, of course, create the files and then clean them up, though generating new files has always felt like a hack to me. If we can figure out a less hacky way, that would be great.] |
Of course, we can try to make it impossible, or at least very hard and obscure, to run language tests with the in-Playground interview... Not ideal, but a possible stop-gap. |
I got a recommendation to use
Since we want this to be manually triggered, I think we can have an env var that sets a bool - whether to test languages or not. If it's false (the default), we leave the url as it is. If it's true, we can change the url to the [I don't think we can use the method above where they use tags to isolate the language tests as alkiln doesn't have a way to predict what language tags users will use and therefore what to normally exclude. Maybe users can still make use of those tags themselves, though, to be able to isolate different language tests. That would go in the documentation.] |
|
MADE does accept language parameters as url arguments |
My mistake. Meant to update here that it was user error - I didn't understand the proper procedure for including url args. It has to be done (as @nonprofittechy kindly informed me) with a url arg of |
The first effort I'm making works with the above There's another method I'm exploring that will avoid those. It involves env vars and loops in bash in the GitHub action. Putting together notes for that. [May just be able to be in |
So regardless of the implementation, I see two strong possibilities for interfaces for our users.
|
Would especially appreciate your input on the above, @nonprofittechy , when you have a mo. |
While the user originally expressed that they preferred to be able to only test languages manually (and avoid automatically testing them all on each push), they now expressed that they may actually prefer to test everything each time, so we're going to let go of that constraint. We'll just test all languages every time and not provide for skipping language tests. |
I'm removing behavior 2 ("Language list env var" from a comment above) as a requirement for this issue. It was a way to help the developer avoid typing in all the languages each time they have to manually enter them in. Now that they won't be inputting them manually, there's no need for an env var like that. |
Was closed by #713 |
Also, nothing really change in ALKiln itself, this is just authors using cucumber features that we didn't know about before. We [could] edit the CHANGELOG to reflect this. |
[Edit: Nothing really change in ALKiln itself, this is just authors using cucumber features that we didn't know about before.]
As per user request, restore running language tests and write internal tests for such (though I'm not sure how we check that the right tests have been run). These should primarily be triggered manually through the workflow dispatch, though allowing an env var for them might still be useful to carry over from previous behavior. Include:
[If we're creating the language files each time] Ensure InThePlayground deletes the language files during post-test cleanup.Should close #360.
Edit:
The text was updated successfully, but these errors were encountered: