dwww Home | Show directory contents | Find package

# basic report works

    [ FAIL 4 | WARN 1 | SKIP 3 | PASS 1 ]
    
    == Skipped tests ===============================================================
    * empty test (2)
    * skip (1)
    
    == Warnings ====================================================================
    -- Warning ('reporters/tests.R:49'): warnings get backtraces -------------------
    def
    Backtrace:
     1. f()
          at reporters/tests.R:49:2
    
    == Failed tests ================================================================
    -- Failure ('reporters/tests.R:12'): Failure:1 ---------------------------------
    FALSE is not TRUE
    
    `actual`:   FALSE
    `expected`: TRUE 
    -- Failure ('reporters/tests.R:17'): Failure:2a --------------------------------
    FALSE is not TRUE
    
    `actual`:   FALSE
    `expected`: TRUE 
    Backtrace:
        x
     1. \-f() at reporters/tests.R:17:2
     2.   \-testthat::expect_true(FALSE) at reporters/tests.R:16:7
    -- Error ('reporters/tests.R:23'): Error:1 -------------------------------------
    Error in `eval(code, test_env)`: stop
    -- Error ('reporters/tests.R:31'): errors get tracebacks -----------------------
    Error in `h()`: !
    Backtrace:
        x
     1. \-f() at reporters/tests.R:31:2
     2.   \-g() at reporters/tests.R:27:7
     3.     \-h() at reporters/tests.R:28:7
    
    [ FAIL 4 | WARN 1 | SKIP 3 | PASS 1 ]

# doesn't truncate long lines

    [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]
    
    == Failed tests ================================================================
    -- Failure ('reporters/long-test.R:2'): That very long test messages are not truncated because they contain useful information that you probably want to read --
    Failure has been forced
    
    [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ]

# always shows summary

    [ FAIL 0 | WARN 0 | SKIP 0 | PASS 7 ]

# shows warnings when not on CRAN

    [ FAIL 4 | WARN 1 | SKIP 3 | PASS 1 ]
    
    == Skipped tests ===============================================================
    * empty test (2)
    * skip (1)
    
    == Warnings ====================================================================
    -- Warning ('reporters/tests.R:49'): warnings get backtraces -------------------
    def
    Backtrace:
     1. f()
          at reporters/tests.R:49:2
    
    == Failed tests ================================================================
    -- Failure ('reporters/tests.R:12'): Failure:1 ---------------------------------
    FALSE is not TRUE
    
    `actual`:   FALSE
    `expected`: TRUE 
    -- Failure ('reporters/tests.R:17'): Failure:2a --------------------------------
    FALSE is not TRUE
    
    `actual`:   FALSE
    `expected`: TRUE 
    Backtrace:
        x
     1. \-f() at reporters/tests.R:17:2
     2.   \-testthat::expect_true(FALSE) at reporters/tests.R:16:7
    -- Error ('reporters/tests.R:23'): Error:1 -------------------------------------
    Error in `eval(code, test_env)`: stop
    -- Error ('reporters/tests.R:31'): errors get tracebacks -----------------------
    Error in `h()`: !
    Backtrace:
        x
     1. \-f() at reporters/tests.R:31:2
     2.   \-g() at reporters/tests.R:27:7
     3.     \-h() at reporters/tests.R:28:7
    
    [ FAIL 4 | WARN 1 | SKIP 3 | PASS 1 ]

Generated by dwww version 1.15 on Sun May 19 05:32:15 CEST 2024.