9 Commits

Author SHA1 Message Date
Yousef Almesbahi
97553b080b Update unittest.py 2022-01-23 12:15:03 +01:00
Inari Listenmaa
4af32f3570 Recognise AllXxxAbs as abstract in unittest 2022-01-19 09:35:58 +01:00
odanoburu
9ca6dc8cb2 * unittest.py: more forgiving parser
- accepts whitespace before comment starts
- accepts blank lines after last test case, or more than one of them
  between test cases
2020-06-03 22:19:19 -03:00
Peter Ljunglöf
091e53619d Updated script: better handling of arguments, simplified code, better reporting, etc.
Note that the flag `-only-cc` has been renamed to `--no-pmcfg`
2019-08-22 11:35:51 +02:00
Inari Listenmaa
4c02a6c6d1 (unittest) Add option to only use cc, never parse
Usage like before, but add -only-cc as one of the arguments. For example:

`python3 unittest/unittest.py src/somali/unittest/vp.gftest -only-cc`

In order for it to work, the test file has to only contain test cases like this:

```
LangSom: isku BIND ma barto
Lang: PhrUtt NoPConj (UttS (UseCl (TTAnt TPres ASimul) PNeg (PredVP (UsePron youSg_Pron) (ReflVP (SlashV2a teach_V2))))) NoVoc
```

&+ needs to be written as BIND.
2019-08-11 14:34:55 +02:00
John J. Camilleri
2d3d382a41 unittest: create README.md as main documentation 2019-08-05 10:57:26 +02:00
Peter Ljunglöf
7cbe4e7810 unittest: adding support for Python- or GF-style comments 2019-07-12 10:39:16 +02:00
Peter Ljunglöf
29ee6d0d70 unittest: updated the script to be able to work from the unittest directory 2019-07-12 10:39:16 +02:00
Peter Ljunglöf
9646629fb3 unittest: Move script to new directory 2019-07-12 10:39:16 +02:00