I'm trying to start a project using Eclipse/ECUT/CppUnit. I've built a simple class and then used the wizard to create a unit test class, but keep running into an error "The selection did not contain any resources that can run on a server." on the first time trying to execute the unit tests. Subsequent attempts give the following error:
EcutClient debug message: No connection established. Error code: 22
Error:
A connection to the ECUT server "localhost" at port -1 could not be established.
If you are running ECUT client within Eclipse ensure that you use ECUT launch configuration in order to launch ECUT unit tests.
It seems to me like the Wizard didn't actually set things up properly. Here's a few more details on what I did:
1) Download Eclipse Gannymede 3.4.2
2) Download and install ECUT R1.0M3 RC2
3) Download CppUnit 1.12.1 and install (configure && make && sudo make install)
4) Create a new C++ project in Eclipse
5) Create a new class with two methods under src/: one returns an int the other string
6) Configure the ECUT connector with the locations of CppUnit
7) Choose ECUT connector for the project and create a build
8) Use the Wizard to create a new ECUT Test Case under test/
9) Build generates an executable
10) Attempts to run the executable produces the errors above.
Platform: Mac OS X 10.5.6 on a MacBook Pro 2.4 GHz Intel Core 2 Duo, 4 GB RAM
What gives? Are there known issues with M3? I could find any documentation or FAQ's.
Thanks,
Kareem
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Figured it out... of course, I spent 2 hours fighting it before posting, but find the problem 10 minutes after that.
I hadn't created a new run configuration for ECUT. The Wizard seems to be broken in 2 ways:
1) It doesn't actually add a new build configuration. You have to do that first or afterwards.
2) None of the steps create a new run configuration. It's assumed that you'll know to do that, and the error message if you don't is unhelpful to say the least.
-kms
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Figured it out... of course, I spent 2 hours fighting it before posting, but find the problem 10 minutes after that.
I hadn't created a new run configuration for ECUT. The Wizard seems to be broken in 2 ways:
1) It doesn't actually add a new build configuration. You have to do that first or afterwards.
2) None of the steps create a new run configuration. It's assumed that you'll know to do that, and the error message if you don't is unhelpful to say the least.
-kms
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I'm trying to start a project using Eclipse/ECUT/CppUnit. I've built a simple class and then used the wizard to create a unit test class, but keep running into an error "The selection did not contain any resources that can run on a server." on the first time trying to execute the unit tests. Subsequent attempts give the following error:
EcutClient debug message: No connection established. Error code: 22
Error:
A connection to the ECUT server "localhost" at port -1 could not be established.
If you are running ECUT client within Eclipse ensure that you use ECUT launch configuration in order to launch ECUT unit tests.
It seems to me like the Wizard didn't actually set things up properly. Here's a few more details on what I did:
1) Download Eclipse Gannymede 3.4.2
2) Download and install ECUT R1.0M3 RC2
3) Download CppUnit 1.12.1 and install (configure && make && sudo make install)
4) Create a new C++ project in Eclipse
5) Create a new class with two methods under src/: one returns an int the other string
6) Configure the ECUT connector with the locations of CppUnit
7) Choose ECUT connector for the project and create a build
8) Use the Wizard to create a new ECUT Test Case under test/
9) Build generates an executable
10) Attempts to run the executable produces the errors above.
Platform: Mac OS X 10.5.6 on a MacBook Pro 2.4 GHz Intel Core 2 Duo, 4 GB RAM
What gives? Are there known issues with M3? I could find any documentation or FAQ's.
Thanks,
Kareem
Figured it out... of course, I spent 2 hours fighting it before posting, but find the problem 10 minutes after that.
I hadn't created a new run configuration for ECUT. The Wizard seems to be broken in 2 ways:
1) It doesn't actually add a new build configuration. You have to do that first or afterwards.
2) None of the steps create a new run configuration. It's assumed that you'll know to do that, and the error message if you don't is unhelpful to say the least.
-kms
Figured it out... of course, I spent 2 hours fighting it before posting, but find the problem 10 minutes after that.
I hadn't created a new run configuration for ECUT. The Wizard seems to be broken in 2 ways:
1) It doesn't actually add a new build configuration. You have to do that first or afterwards.
2) None of the steps create a new run configuration. It's assumed that you'll know to do that, and the error message if you don't is unhelpful to say the least.
-kms