Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The tests are divided into several layers. 


Layer 1 - for developers that wanna run tests. 

Test for them is a folder where they define: 

...

  Also they may define something more complex in the text script. The core thing is that they may stick to very simple list of the testlisting


They run tests by doing: 

eden test scenario <scenario file> 

like

eden test scenario <name of the folder> scenario ./tests/scenario.txt

Layer 2- for developers that wanna develop tests. 

Test for them is a folder where they define: 

...

3) They may have some other go files, for example for customAssertFunction but it's not required to have them


First they build the binary by calling 

eden test build <path of the folder> 

This calls make utility and places the binary in the same folder.  


Then they run the test by calling 

eden test run <path of the folder> 


Layer 3- for developers that wanna develop something special. 

They need to have the main method TestMain and the binary <foldername> in the folder. They may have a special make file and whatever else they want. They build the test any way they want

...