-
-
Notifications
You must be signed in to change notification settings - Fork 235
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
Integrate dtcw tests into CI build #1073
Comments
What do you mean with "test the correct deployment of it"? The deployment of In the PR I created two end-to-end (e2e) test:
What I would like to have is Github workflows running the tests on different environments (Linux, macOS) whenever someone changes I haven't worked with Github workflows that much. Maybe I'm able to adapt the tests which use mocks (the non e2e tests) so that they do not need the docker container. Then we just could add a workflow tests for Ubunt and macOS. Is that what you were asking for? |
I started to work on a GitHub Action workflow running the test suite whenever I followed the approach to run the tests within a docker container. This works fine as long an Ubuntu runner is used. But I would like to test the scripts on macOS too, as requested in #543. Running the tests in the virtual machine provided by the GHA fails. The tests assume a clean environment without any tooling (like Since we have to run the test suite on a VM for macOS anyway, I have to change the tests, so there is no collision between the test mocks and the installed commands. |
as far as I could see, the tests use the |
I am quite happy with what you came up with. I think it will be quite hard to come up with tests for macOS and powershell. My initial thought from this issue was that we should set up a test which starts with the curl command to download the wrapper from the website. It was more or less a reminder for me to checkout the test framework you came up with :-) |
that is a great idea! |
Well, I'm almost certain that we can run the same tests on macOS and Linux (or other POSIX compliant OS). I have to extend https://github.com/grayhemp/bats-mock, the mocking framework so that I can mock commands as "command not found". I'm currently working on that.
So you want to test if the URL shown in the documentation points to Because the test suite already performs end-to-end tests for installing docToolchain and Java with The CI test pipeline for
The jobs are run sequentially, meaning they would stop in case an error occurs. Regarding the |
IMHO, it doesn't make much sense to test the published I currently struggle with GitHub actions. I would like to change the default-build so that It doesn't run when |
Just to give this ticket a boundary. The ticker is going to be resolved when
The end-to-end tests with |
the new tests for the wrapper really help a lot!
Can we setup a test which downloads the current wrapper from https://doctoolchain.org/dtcw to test the correct deployment of it?
Would this make sense?
The text was updated successfully, but these errors were encountered: