/extra/mason/report/report-tests.factor
http://github.com/abeaumont/factor · Factor · 30 lines · 23 code · 7 blank · 0 comment · 0 complexity · 948a4cb16b49296b14218de79c8d4b71 MD5 · raw file
- IN: mason.report.tests
- USING: io.files io.files.temp io.directories kernel mason.report
- mason.common mason.config namespaces tools.test xml xml.writer ;
- { 0 0 } [ [ ] with-report ] must-infer-as
- : verify-report ( -- )
- [ t ] [ "report" exists? ] unit-test
- [ ] [ "report" file>xml drop ] unit-test
- [ ] [ "report" delete-file ] unit-test ;
- "builds" temp-file builds-dir [
- "resource:extra/mason/report/fake-data/" [
- [ ] [
- timings-table pprint-xml
- ] unit-test
-
- [ ] [ successful-report ] unit-test
- verify-report
-
- [ status-error ] [ 1234 compile-failed ] unit-test
- verify-report
-
- [ status-error ] [ 1235 boot-failed ] unit-test
- verify-report
-
- [ status-error ] [ 1236 test-failed ] unit-test
- verify-report
- ] with-directory
- ] with-variable