-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathxttasksinit.spec.pro
More file actions
45 lines (34 loc) · 949 Bytes
/
xttasksinit.spec.pro
File metadata and controls
45 lines (34 loc) · 949 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
;h+
; Copyright (c) 2018, Harris Geospatial Solutions, Inc.
;
; Licensed under MIT, see LICENSE.txt for more details
;h-
;+
; :Description:
; Tests for the xtfilesearch procedure and task.
;
; Running these tests requires additional code that
; is not a part of this repository.
;
;
; :Author: Zachary Norman - GitHub: znorman-harris
;-
;get the current directory
thisdir = file_dirname(routine_filepath())
;start ENVI
e = envi(/HEADLESS)
;create a luna tester
l = luna(CONFIG_FILE = './idl.test.json')
;create a suite
s = l.suite('Test that our tasks')
;create a test
it = s.test('can be created')
;search for files
files = file_search(thisdir, '*.task', COUNT = nFiles)
;make sure we have files and open all tasks
if (nFiles gt 0) then begin
foreach file, files do (it.expects(file)).toBeAValidENVITask
endif
;generate a test summary
l.GenerateTestSummary
end