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

Migrate to JUnit 5 - Jenkins #51 #589

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

gnl42
Copy link
Contributor

@gnl42 gnl42 commented Aug 7, 2024

Proof of Concept replacing JUnit 4 with JUnit 5

Convert Jenkins unit tests

Conditionally re-enable the CI runs if a CI server can be reached. CI server setup using the multipass scrips created by @BeckerFrank

Task-Url: #51

@gnl42 gnl42 linked an issue Aug 7, 2024 that may be closed by this pull request
* SPDX-License-Identifier: EPL-2.0
*
* Tasktop Technologies - initial API and implementation
* See git histpry
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

history

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

D'oh!

@@ -11,6 +11,7 @@
* Tasktop Technologies - improvements
* Eike Stepper - improvements for bug 323759
* Benjamin Muskalla - 323920: [build] config retrival fails for jobs with whitespaces
* See git histpry
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

history

@@ -16,7 +16,11 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="0.0.0",
org.eclipse.search;bundle-version="0.0.0",
org.eclipse.ui;bundle-version="0.0.0",
org.eclipse.ui.workbench.texteditor;bundle-version="0.0.0",
org.junit;bundle-version="4.8.2"
junit-jupiter-api;bundle-version="5.10.3",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would recommend to prefer "Import-Package" for 3rd party libs

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.
I wasn't sure about that so I just followed what was done with JUnit 4

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I tried "importing" and had to add the libraries to the .target file with older versions. So I don't know what is the best solution?

I'm still trying to figure out how all this works.
What are the pros and cons of using the versions made available implicitly vs the ones from the orbit/drop/??? sites

@@ -8,6 +8,7 @@
* SPDX-License-Identifier: EPL-2.0
*
* Tasktop Technologies - initial API and implementation
* See git histpry
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

history

* SPDX-License-Identifier: EPL-2.0
*
* Tasktop Technologies - initial API and implementation
* See git histpry
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

history

@@ -10,14 +10,17 @@
* Tasktop Technologies - initial API and implementation
* Guy Perron - add Windows support
* ArSysOp - ongoing support
* See git histpry
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

history

* SPDX-License-Identifier: EPL-2.0
*
* Tasktop Technologies - initial API and implementation
* ArSysOp - ongoing support
* See git histpry
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

history

import org.eclipse.mylyn.jenkins.tests.support.JenkinsFixture;
import org.junit.jupiter.api.Test;

public class SuiteSetup {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need instead a JUnit 5 Extensions or some other new feature so that we can support multible fixtures

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate to JUnit 5
3 participants