1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-21 21:52:10 +02:00
cdt/core
Jonah Graham 306708f5cb Remove projects from workspace at test startup
Various tests are not cleaning up properly after
themselves, causing test failures on subsequent
tests. Therefore start each test by deleting
all projects.

In addition, some tests were creating their test
projects in their constructor. As all the constructors
run before all the tests as part of test discovery
it means that projects were being created in
constructor and interfering with other tests
later. With the deleting of all projects in @AfterEach
these tests would have started failing. Therefore,
change these tests to create their projects
and do other initialize tasks in the setUp method.

For older JUnit3 style tests:
This substantially slows down tests as many tests
rely on sharing the project between multiple tests and
recreating those projects on each run is slow.
Therefore this is not applied universally to
all JUnit3 tests.

For tests that are affected, those tests are moved
to JUnit5 base test.

Part of #117
2022-10-25 22:56:02 -04:00
..
org.eclipse.cdt.core Bump org.eclipse.cdt.core major version 2022-10-25 22:28:51 -04:00
org.eclipse.cdt.core.linux Update to Java 17 as BREE. Fixes #80 2022-10-03 12:42:37 -04:00
org.eclipse.cdt.core.linux.aarch64 Update to Java 17 as BREE. Fixes #80 2022-10-03 12:42:37 -04:00
org.eclipse.cdt.core.linux.ppc64le Update to Java 17 as BREE. Fixes #80 2022-10-03 12:42:37 -04:00
org.eclipse.cdt.core.linux.x86_64 Update to Java 17 as BREE. Fixes #80 2022-10-03 12:42:37 -04:00
org.eclipse.cdt.core.macosx Update to Java 17 as BREE. Fixes #80 2022-10-03 12:42:37 -04:00
org.eclipse.cdt.core.native Update to Java 17 as BREE. Fixes #80 2022-10-03 12:42:37 -04:00
org.eclipse.cdt.core.tests Remove projects from workspace at test startup 2022-10-25 22:56:02 -04:00
org.eclipse.cdt.core.win32 Update to Java 17 as BREE. Fixes #80 2022-10-03 12:42:37 -04:00
org.eclipse.cdt.core.win32.x86_64 Update to Java 17 as BREE. Fixes #80 2022-10-03 12:42:37 -04:00
org.eclipse.cdt.ui Bump org.eclipse.cdt.core major version 2022-10-25 22:28:51 -04:00
org.eclipse.cdt.ui.tests Restore completion filter after testing preference 2022-10-25 22:56:02 -04:00
pom.xml [releng] Bump versions for CDT 11.0.0 2022-10-03 12:42:37 -04:00