;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ; This file is part of "NOVA": NOVA = search + COCOMO tools ; Copyright, 2008, Tim Menzies tim@menzies.us ; ; NOVA is free software: you can redistribute it and/or modify ; it under the terms of the GNU General Public License as published by ; the Free Software Foundation, either version 3 of the License, or ; (at your option) any later version. ; ; NOVA is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; You should have received a copy of the GNU General Public License ; a long with NOVA. If not, see . ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (in-package :nova-web-test.xml) (deftestsuite xml-test-suite (nova-web-tests) () ) ;;; learning (deftestsuite learning-xml-test-suite (xml-test-suite) ()) (addtest check-nova-input-from-xml (let ((expected-learning-input (make-nova-learning-input 'keys 'energy '(effort months threat defects energy) '((kloc 1000 5000) (a 2.3 4.5) (b 0.2 0.3) (c 0.54) (d 2.3) (pr 2 3 4 5 6) (etat 1 2 3 4 5 6) (aa 3) (site 3) (plex 3) (pcon 2) (pcap 3) (prec 2) (pmat 3)) '(acad etat pmat pr sced))) actual-learning-input) ;;FIXME path to example file needs updated (with-open-file (s "example/example-learing-input.xml" :element-type '(unsigned-byte 8)) (setf actual-learning-input (nova-input-from-xml s)) (ensure-same expected-learning-input actual-learning-input :test #'equalp)))) ;;; calibration ;TODO xml-calibration testing (deftestsuite calibration-xml-test-suite (xml-test-suite) ()) ;;; simulation ;TODO xml-simulation testing (deftestsuite simulation-xml-test-suite (xml-test-suite) ())