Skip to main content

Earlier, in this case, I always dodid mvn eclipse:eclipseeclipse:eclipse and restartrestarted my Eclipse and it worked. After migrating to GIT, it stopstopped working for me which is somewhat weird.

Basic problem here is Mr Eclipse does not find the compiled class. Then, I set the output folder as Project/target/test-classes which is by default generated by mvn clean installmvn clean install without skipping the test and proceedproceeded with following workaround:

Option 1: Set classpath for each test case

Eclipse ->Run ->Run Configurations ->under JUnit->select mytest -> under classpath tab->Select User Entries->Advanced->Add Folder -> Select <Project/target/test-classes>->Apply->Run

Option 2: Create classpath variable and include it in classpath for all the test cases

Eclipse ->Windows ->Classpath Variables ->New->[Name : Junit_test_cases_cp | path : <Project/target/test-classes>]->ok Then go to Eclipse->Run ->Run Configurations ->JUnit->select mytest ->under classpath tab ->Select User Entries->Advanced->Add classpath variables->Select Junit_test_cases_cp->ok->Apply->Run

This is the only thing currently working for me after trying all the suggestions online.

Earlier in this case I always do mvn eclipse:eclipse and restart my Eclipse and it worked. After migrating to GIT it stop working for me which is somewhat weird.

Basic problem here is Mr Eclipse does not find the compiled class. Then I set the output folder as Project/target/test-classes which is by default generated by mvn clean install without skipping the test and proceed with following workaround

Option 1: Set classpath for each test case

Eclipse ->Run ->Run Configurations ->under JUnit->select mytest -> under classpath tab->Select User Entries->Advanced->Add Folder -> Select <Project/target/test-classes>->Apply->Run

Option 2: Create classpath variable and include it in classpath for all the test cases

Eclipse ->Windows ->Classpath Variables ->New->[Name : Junit_test_cases_cp | path : <Project/target/test-classes>]->ok Then go to Eclipse->Run ->Run Configurations ->JUnit->select mytest ->under classpath tab ->Select User Entries->Advanced->Add classpath variables->Select Junit_test_cases_cp->ok->Apply->Run

This is the only thing currently working for me after trying all the suggestions online.

Earlier, in this case, I always did mvn eclipse:eclipse and restarted my Eclipse and it worked. After migrating to GIT, it stopped working for me which is somewhat weird.

Basic problem here is Mr Eclipse does not find the compiled class. Then, I set the output folder as Project/target/test-classes which is by default generated by mvn clean install without skipping the test and proceeded with following workaround:

Option 1: Set classpath for each test case

Eclipse ->Run ->Run Configurations ->under JUnit->select mytest -> under classpath tab->Select User Entries->Advanced->Add Folder -> Select <Project/target/test-classes>->Apply->Run

Option 2: Create classpath variable and include it in classpath for all the test cases

Eclipse ->Windows ->Classpath Variables ->New->[Name : Junit_test_cases_cp | path : <Project/target/test-classes>]->ok Then go to Eclipse->Run ->Run Configurations ->JUnit->select mytest ->under classpath tab ->Select User Entries->Advanced->Add classpath variables->Select Junit_test_cases_cp->ok->Apply->Run

This is the only thing currently working for me after trying all the suggestions online.

Earlier in this case I always do mvn eclipse:eclipse and restart my Eclipse and it worked. After migrating to GIT it stop working for me which is somewhat wiredweird.

Basic problem here is Mr Eclipse does not foundfind the compiled class. Then I set the output folder as Project/target/test-classes which is by default generated by mvn clean install without skipping the test and proceed with following workaround

Option 1: Set classpath for each test case

Eclipse ->Run ->Run Configurations ->under JUnit->select mytest -> under classpath tab->Select User Entries->Advanced->Add Folder -> Select <Project/target/test-classes>->Apply->Run

Option 2: Create classpath variable and include it in classpath for all the test cases

Eclipse ->Windows ->Classpath Variables ->New->[Name : Junit_test_cases_cp | path : <Project/target/test-classes>]->ok Then go to Eclipse->Run ->Run Configurations ->JUnit->select mytest ->under classpath tab ->Select User Entries->Advanced->Add classpath variables->Select Junit_test_cases_cp->ok->Apply->Run

This is the only thing currently working for me after trying all the suggestions on-lineonline.

Earlier in this case I always do mvn eclipse:eclipse and restart my Eclipse and it worked. After migrating to GIT it stop working for me which is somewhat wired.

Basic problem here is Mr Eclipse does not found the compiled class. Then I set the output folder as Project/target/test-classes which is by default generated by mvn clean install without skipping the test and proceed with following workaround

Option 1: Set classpath for each test case

Eclipse ->Run ->Run Configurations ->under JUnit->select mytest -> under classpath tab->Select User Entries->Advanced->Add Folder -> Select <Project/target/test-classes>->Apply->Run

Option 2: Create classpath variable and include it in classpath for all the test cases

Eclipse ->Windows ->Classpath Variables ->New->[Name : Junit_test_cases_cp | path : <Project/target/test-classes>]->ok Then go to Eclipse->Run ->Run Configurations ->JUnit->select mytest ->under classpath tab ->Select User Entries->Advanced->Add classpath variables->Select Junit_test_cases_cp->ok->Apply->Run

This is the only thing currently working for me after trying all the suggestions on-line.

Earlier in this case I always do mvn eclipse:eclipse and restart my Eclipse and it worked. After migrating to GIT it stop working for me which is somewhat weird.

Basic problem here is Mr Eclipse does not find the compiled class. Then I set the output folder as Project/target/test-classes which is by default generated by mvn clean install without skipping the test and proceed with following workaround

Option 1: Set classpath for each test case

Eclipse ->Run ->Run Configurations ->under JUnit->select mytest -> under classpath tab->Select User Entries->Advanced->Add Folder -> Select <Project/target/test-classes>->Apply->Run

Option 2: Create classpath variable and include it in classpath for all the test cases

Eclipse ->Windows ->Classpath Variables ->New->[Name : Junit_test_cases_cp | path : <Project/target/test-classes>]->ok Then go to Eclipse->Run ->Run Configurations ->JUnit->select mytest ->under classpath tab ->Select User Entries->Advanced->Add classpath variables->Select Junit_test_cases_cp->ok->Apply->Run

This is the only thing currently working for me after trying all the suggestions online.

Source Link

Earlier in this case I always do mvn eclipse:eclipse and restart my Eclipse and it worked. After migrating to GIT it stop working for me which is somewhat wired.

Basic problem here is Mr Eclipse does not found the compiled class. Then I set the output folder as Project/target/test-classes which is by default generated by mvn clean install without skipping the test and proceed with following workaround

Option 1: Set classpath for each test case

Eclipse ->Run ->Run Configurations ->under JUnit->select mytest -> under classpath tab->Select User Entries->Advanced->Add Folder -> Select <Project/target/test-classes>->Apply->Run

Option 2: Create classpath variable and include it in classpath for all the test cases

Eclipse ->Windows ->Classpath Variables ->New->[Name : Junit_test_cases_cp | path : <Project/target/test-classes>]->ok Then go to Eclipse->Run ->Run Configurations ->JUnit->select mytest ->under classpath tab ->Select User Entries->Advanced->Add classpath variables->Select Junit_test_cases_cp->ok->Apply->Run

This is the only thing currently working for me after trying all the suggestions on-line.