Forum > Suggestions

Wish list: Eclipse-style unit tests; clear project structure.

<< < (2/5) > >>

marcov:

--- Quote from: mvampire on January 09, 2012, 02:48:37 pm ---

I suggest an ability to have unit-tests in the same project with tested units. Unit test is not a program, it's a unit. So I mean running such a unit with unit test, without running the whole program.
Generally, but not necessary, I want an ability to have several programs in the project, not only running unit tests possibility.
For example, let's assume that there are following units in the project:

--- End quote ---

That sounds like project groups, like Delphi has it. 

Leledumbo:

--- Quote ---Unit test is not a program, it's a unit. So I mean running such a unit with unit test, without running the whole program.
--- End quote ---
As I said earlier, this is impossible. Units cannot be run, only programs do (though, as I said earlier again, the program code could be temporarily generated upon request to run this unit test).

--- Quote ---Can I ask then how exactly can I get Maven-like project structure for my project? With different property files for tests and main program?
I also meant there that it would be cool if all new projects will already have some basic structure by default (when starting a new project), and not all-files-in-one-folder.
--- End quote ---
I don't know what Maven project structure looks like, but this wiki page would explain how to create a custom project structure. Basically, you create a project with the structure you want, and save it as template. Next time you create a project, choose from this template.

--- Quote ---That sounds like project groups, like Delphi has it.
--- End quote ---
Or solution, stealing M$ term.

mvampire:

--- Quote from: Leledumbo on January 09, 2012, 04:50:25 pm ---
--- Quote ---Unit test is not a program, it's a unit. So I mean running such a unit with unit test, without running the whole program.
--- End quote ---
As I said earlier, this is impossible. Units cannot be run, only programs do (though, as I said earlier again, the program code could be temporarily generated upon request to run this unit test).

--- End quote ---

OK. I was just talking from user perspective. Does not matter how exactly it wll be implemented, I meant that I would like to right click on one of the unit in the project (e.g, in project inspector) and click 'run as unit test case'. Then, of course, some code could be temporarily generated, but, as a user (!) I don't want to think about such code (program code to run unit test case). I (AS A USER, not personally) want to: have a project - make a package with unit tests inside this project - create an unit test there - click on unit test - click 'run as unit test' - see the results - see on which line in unit being tested I have a problem.

JuhaManninen:

--- Quote from: CaptBill on January 09, 2012, 07:56:24 am ---This is a task for Tinycore Linux. You have an excellent foundation with a repository system, your own personal one. You simply are building extensions/packages like a .deb (Debian).
[...]

--- End quote ---

CaptBill, did you write the message? It looks like a spam sent by a bot, not relating to the issue.

Juha

Blaazen:
@Juha, CaptainBill

This seems to be "mixed" answer.
The first part probably belongs to this thread: http://www.lazarus.freepascal.org/index.php/topic,15740.msg84943/topicseen.html#new
and the second part is valid to current thread.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version