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

Cannot Run Kapua Unit Tests #2994

Open
LeoNerdoG opened this issue Jun 4, 2020 · 0 comments
Open

Cannot Run Kapua Unit Tests #2994

LeoNerdoG opened this issue Jun 4, 2020 · 0 comments
Assignees
Labels
Bug This is a bug or an unexpected behaviour. Fix it! Test Test related stuff. It's a dirty job, but someone needs to do that!

Comments

@LeoNerdoG
Copy link
Contributor

Following the KapuaRunTests.md guide, I was unable to run unit tests with command mvn test -Dgroups='org.eclipse.kapua.test.junit.JUnitTests'.
integration tests within dockerized environment with mvn test -PI9nTests command.
@Coduz can you please assign this issue to me, since I have noticed this couple of days ago and have made some progress fixing this?

Testflow:

  1. Go to Kapua folder, run a clean build with comman: mvn clean install -DskipTests
  2. After the build finishes, run the command: mvn test -Dgroups='org.eclipse.kapua.test.junit.JUnitTests'
  3. Observe the error in the command line (screenshot bellow)

Expected behavior
If user runs command mvn test -Dgroups='org.eclipse.kapua.test.junit.JUnitTests' the unit tests should be run normally.

Screenshots
Screenshot 2020-06-04 at 08 03 07

Version of Kapua
1.3.0-SNAPSHOT

Type of deployment
[ ] Local Vagrant deployment
[X] Docker
[ ] Openshift (in its variants)
[ ] Others

Main component affected
[ ] Console (in case of console please report info on which browser you encountered the problem)
[ ] REST API
[ ] Message Broker
[X] - Others

@Coduz Coduz added Bug This is a bug or an unexpected behaviour. Fix it! Test Test related stuff. It's a dirty job, but someone needs to do that! labels Jun 17, 2020
LeoNerdoG added a commit to LeoNerdoG/kapua that referenced this issue Nov 5, 2020
I have update several things:
 - updated root README.md file
 - updated "runTests.md" file with updated commands
 - updated pom files

In general documentation (root README.md file) some minor syntax errors have been fixed.
In "runTests.md" file the commands for runnind pure JUnit tests has been fixed.

Because integration tests in dockerized environment were not working (docker containers have started in every submodule)
I changed the pom.xml files of qa/integration, qa/integration-steps, qa/commons and qa/markers modules. Now eveything works fine,
user is again able to run tests from his local machine.

This should fix issues eclipse-kapua#2993, eclipse-kapua#2994 and eclipse-kapua#2995.

Signed-off-by: Leonardo Gaube <leonardo.gaube@endava.com>
LeoNerdoG added a commit to LeoNerdoG/kapua that referenced this issue Nov 6, 2020
I have update several things:
 - updated root README.md file
 - updated "runTests.md" file with updated commands
 - updated pom files
 - added codeCov badge

In general documentation (root README.md file) some minor syntax errors have been fixed.
In "runTests.md" file the commands for runnind pure JUnit tests has been fixed.

Because integration tests in dockerized environment were not working (docker containers have started in every submodule)
I changed the pom.xml files of qa/integration, qa/integration-steps, qa/commons and qa/markers modules. Now eveything works fine,
user is again able to run tests from his local machine.

This should fix issues eclipse-kapua#2993, eclipse-kapua#2994 and eclipse-kapua#2995.

Last, I added codeCov badge to Kapua's "front page" - root README.md file.

Signed-off-by: Leonardo Gaube <leonardo.gaube@endava.com>
LeoNerdoG added a commit to LeoNerdoG/kapua that referenced this issue Nov 6, 2020
I have update several things:
 - updated root README.md file
 - updated "runTests.md" file with updated commands
 - updated pom files
 - added codeCov badge

In general documentation (root README.md file) some minor syntax errors have been fixed.
In "runTests.md" file the commands for runnind pure JUnit tests has been fixed.

Because integration tests in dockerized environment were not working (docker containers have started in every submodule)
I changed the pom.xml files of qa/integration, qa/integration-steps, qa/commons and qa/markers modules. Now eveything works fine,
user is again able to run tests from his local machine.

This should fix issues eclipse-kapua#2993, eclipse-kapua#2994 and eclipse-kapua#2995.

Last, I added codeCov badge to Kapua's "front page" - root README.md file.

Signed-off-by: Leonardo Gaube <leonardo.gaube@endava.com>
@Coduz Coduz moved this to To Do in Eclipse Kapua Backlog Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug or an unexpected behaviour. Fix it! Test Test related stuff. It's a dirty job, but someone needs to do that!
Projects
None yet
Development

No branches or pull requests

2 participants