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

Does not work for NetBeans projects that were created without NBCndUnit installed. #8

Closed
vkantchev opened this issue May 17, 2016 · 7 comments
Assignees

Comments

@vkantchev
Copy link

I am not able to use the plugin as it is for an existing NetBeans project. The project was created before the NBCndUnit plugin was installed. Then the plugin was installed, and it does not work. We use NetBeans 8.1 and latest GoogleTest.

@vkantchev vkantchev changed the title Work with NetBeans projects that were created without NBCndUnit installed. Does not work for NetBeans projects that were created without NBCndUnit installed. May 17, 2016
@offa
Copy link
Owner

offa commented May 17, 2016

You are talking about a default Netbeans C / C++ Project as you get through New Project -> C/C++ -> C/C++ Application / Dynamic Library / …, but _not_ Project with Existing Sources or Project from Binary Files - this that correct?

  1. What version of this plugin are you using?
  2. What are the steps to reproduce the problem?
  3. Can you reproduce it using a minimal project?
  4. How did you create the Project?
  5. "Does not work" -- can you explain a bit? Are the tests executed, but no output (eg. test result window not shown or empty)
  6. Is there any error message shown?
  7. Are there any info's in the Netbeans Log? (View -> IDE Log will show you the current log output)

@offa
Copy link
Owner

offa commented May 17, 2016

One thing you can check: If you have created a default Netbeans C/C++ Project, there's a structure like this:

  • Header Files
  • Resource Files
  • Source Files
  • Test Files
  • Important Files

Create a Test Folder within Test Files (Test Files -> New Test Folder …) . If you already have some tests, you can add them through Add existing Item.

Your project should look like this then:

  • Test Files
    • [The created Test Folder]

@vkantchev
Copy link
Author

The project was created with a previous version of NetBeans and does not have a Test Files group. However if I create a new C++ Application project I can see that the Test Files group is there.

@vkantchev
Copy link
Author

OK. I added a Test Files logical folder. How do I add a Test Folder to it?

@vkantchev
Copy link
Author

I guess my issue is: How do I use this plugin with an existing project? What do I need to add to which NetBeans XML files, so I can see the list of tests in NetBeans and be able to run / debug a single test. We use GoogleTest. NetBeans 8.1, on Ubuntu 14.04

@vkantchev
Copy link
Author

This looks very similar to issue #7, although the project I ma working with was not created from existing sources, but by old NetBeans 6.x.

@offa
Copy link
Owner

offa commented May 18, 2016

Ok, i have figured out how to update netbeans project settings with a test folder, so maybe it'll work here too.

@offa offa self-assigned this Oct 7, 2016
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

No branches or pull requests

2 participants