File: TODO

package info (click to toggle)
lxi-tools 2.8-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,956 kB
  • sloc: ansic: 6,110; xml: 146; sh: 24; python: 12; makefile: 5
file content (57 lines) | stat: -rw-r--r-- 1,351 bytes parent folder | download
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
46
47
48
49
50
51
52
53
54
55
56
57
# lxi-gui

 * Update lxi-gui to use latest GTK4.x and libadwaita versions. Currently the
   compilation process throws a lot of message regarding use of deprecated
   GTK/libadwaita functions.

 * Add support for test cases in lua scripts

   Add support for splitting a lua script into test cases for expressing
   pass/fail status via gui or console when running the script. This is a
   feature useful for test automation and reporting.

   The current idea is to define test cases via lua comments so that is becomes
   a layering not affecting normal script operation.

   Example lua test script:

    -- tc "Test case 1 description"

    print("This is test case 1")



    -- tc "Test case 2 description"

    print("This is test case 2")

    fail()



    -- tc "Test case 3 description"

    print("This is test case 3")

    fail_stop()



    -- tc "Test case 4 description"

    print("This is test case 4")



    -- tc end

    tc_save("test-results.log")


   When running the script the GUI will present a list of test cases and their
   pass/fail status as the script progresses. If run via command line tool lxi,
   a similar list will be presented in text.

   Also includes introduction of fail() function which will report failure and
   continue and fail_stop() function which will report failure and stop script
   execution.