rubyx/test/README.md

33 lines
908 B
Markdown
Raw Permalink Normal View History

2015-03-25 17:31:18 +01:00
# Testing
2018-07-07 16:34:08 +02:00
Tdd, Bdd , Xdd, whatever you call it, i have come to the point where it
is a way not only to write software, but to think about software. Ie:
- if it's not tested, we don't know it works
- test first makes me think about the software from the outside. (good perspective)
2015-03-25 17:31:18 +01:00
I used minitest as the framework, just because it is lighter and thus when the
2017-08-29 17:38:51 +02:00
time comes to move to rubyx, less work.
2015-03-25 17:31:18 +01:00
2015-04-06 09:28:44 +02:00
### All
''''
ruby test/test_all.rb
''''
### Parfait, Risc , Arm , SlotMachine
2015-10-07 10:32:48 +02:00
2018-07-07 16:34:08 +02:00
Follow the directory structure of the source and may be called unit tests
2015-10-07 10:32:48 +02:00
2018-07-07 16:34:08 +02:00
### Risc/Interpreter
2015-10-07 10:32:48 +02:00
2018-07-07 16:34:08 +02:00
Contains many system tests that rely on everything else working.
Should be hoisted i guess.
2015-04-06 09:28:44 +02:00
2018-07-07 16:34:08 +02:00
### Main
2015-10-07 10:32:48 +02:00
2018-07-07 16:34:08 +02:00
Much like the Interpreter test, but for Arm. This is where the currently few
executables are generated and there is an automatic way of running them remotely.
2015-10-07 10:32:48 +02:00
2018-07-07 16:34:08 +02:00
The plan is to integrate this with the interpreter directory