This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
eiffel:faq:eiffel-new [2019/07/11 16:23] jonathan |
eiffel:faq:eiffel-new [2019/12/30 17:16] (current) jonathan |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== eiffel-new ====== | + | ====== eiffel-new webapp=== |
+ | |||
+ | [[https://www.eecs.yorku.ca/~eiffel/eiffel-new/ | Use a webapp to create a new Eiffel Project]]. Login required. | ||
+ | |||
+ | ====== eiffel-new from command line====== | ||
''eiffel-new'' is a command line program on our Prism workstations (and the SEL Virtual Machine) to create a new Eiffel project with void safe settings and including the Espec unit testing framework and Mathmodels. | ''eiffel-new'' is a command line program on our Prism workstations (and the SEL Virtual Machine) to create a new Eiffel project with void safe settings and including the Espec unit testing framework and Mathmodels. | ||
Line 17: | Line 21: | ||
</code> | </code> | ||
+ | The command prompts you for a project name (e.g. ''fizzbuzz'') and then creates a folder called fizbuzz with a root class (file ''root.e''), a test class TEST_EXAMPLE (file ''test_example.e'') and an ECF file. | ||
+ | |||
+ | At the command line execute ''estudio fizzbuzz/fizzbuzz.ecf & ''. The IDE is invoked and will ask for a directory in which to place the EIFGEN files. | ||
+ | |||
+ | {{:eiffel:faq:faq:eiffel-eifgen-directory.png?600|}} | ||
+ | |||
+ | Compile the program (F7) and you should see: | ||
+ | |||
+ | {{:eiffel:faq:eiffel-new-estudio.png?740|}} | ||
+ | |||
+ | You can see how to set up a unit tests (in the image we show a test of base class ARRAY[G]). | ||
+ | |||
+ | If you run the tests (''Run'', i.e. F5) you obtain a report on the success (green bar) or failure (red bar) of your project. | ||
+ | |||
+ | If you want to develop an algorithm for "fizzbuzz" the create a class in the ''model'' cluster and test it with a test in TEST_EXAMPLE. | ||
+ | |||
+ | {{:eiffel:faq:eifel-new-espec.png?740|}} |