-
Notifications
You must be signed in to change notification settings - Fork 16
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
CI: Develop a test harness for a worker (RSS022-73) #398
Comments
I've setup Maven and Travis to run some integration Test for the Workers I've wrote a first IT test (i.e. WokerInstanceIT.java) which: * Send a predefined Task to RabbitMQ * Check progress messages sent by the Worker * Check the output tar file Test pass onto my machine, gioing to push it in order to test it on Travis
I've made some progress with this. I've tested it on my machine and it seemed to work fine but there seems to be some problem when the test run on Travis. |
In order to avoid the test hanging while waiting for RabbitMQ message from the worker, if no message has been sent after 1 minute the test will just fail. I also moved all the dependencies in the main .pom file I add to comment out @DataJpaTest as it was causing some errors during the test.
I've added the config.properties file to the resources for test and other config file as I wonder if it's the reason causing test to fail on Travis.
I was using `mvn integration-test` instead of `mvn verify` post-integration-test would not get execute and therefore the build would never actually fail.
I've setup Maven and Travis to run some integration Test for the Workers I've wrote a first IT test (i.e. WokerInstanceIT.java) which: * Send a predefined Task to RabbitMQ * Check progress messages sent by the Worker * Check the output tar file Test pass onto my machine, gioing to push it in order to test it on Travis
In order to avoid the test hanging while waiting for RabbitMQ message from the worker, if no message has been sent after 1 minute the test will just fail. I also moved all the dependencies in the main .pom file I add to comment out @DataJpaTest as it was causing some errors during the test.
I've added the config.properties file to the resources for test and other config file as I wonder if it's the reason causing test to fail on Travis.
I was using `mvn integration-test` instead of `mvn verify` post-integration-test would not get execute and therefore the build would never actually fail.
The text was updated successfully, but these errors were encountered: