Gradle不尊重testng的详细设置

时间:2018-10-08 23:25:17

标签: gradle testng testng-eclipse

我有一个testng xml文件,其测试套件设置为verbose =“ 9”。当通过eclipse运行testng时(右键单击xml文件并执行Run As-> TestNG Suite),我在testng-results.xml输出文件中记录了预期的报告者输出部分。然后,当我使用带有相同testng文件的gradle运行时,该部分为空。 我正在使用testng 6.14.3和gradle 4.9。在这些版本中报告/保留详细标志是否存在已知问题?

这是我在构建文件中进行testng设置的方式:

#Procedure: DisplayNumb
#Displays a message to the user followed by a numerical value
#Input: $a0 points to the text string that will get displayed to the user
#Input: $a1 points to a word address in .data memory, where the result value is stored
displayNumb:
    #PRINT STRING
    li      $v0, 4              #Load print string syscall
    syscall                     #Execute

    #SAVE RETURN TO STACK
    addi $sp, $sp, -4               #Subtract 4 to stack to prevent loss of memory
    sw $ra, 0($sp)                  #Saves #ra on stack

    #CONVERT RESULT BINARY
    move        $a0, $a1            #Load pointer of result to be converted in $a0
    la      $a1, buffer         #Load pointer of result buffer for holding string to be printed in $a1
    jal     BinToDecAsc         #Convert

    #LOAD RETURN FROM STACK
    lw $ra, 0($sp)                  #Loads $ra on stack
    addi $sp, $sp, 4                #Add 4 to stack to prevent loss of memory

    #PRINT RESULT
    la      $a0, buffer             #Copy result into $a0
    li      $v0, 4              #Load print string syscall
    syscall                     #Execute <-- RUNS BUT NOTHING PRINTS

    jr      $ra             #Return

0 个答案:

没有答案