[Progress Communities] [Progress OpenEdge ABL] Forum Post: Well done. ABLUnit @Ignore

  • Thread starter Thread starter GregHiggins
  • Start date Start date
Status
Not open for further replies.
G

GregHiggins

Guest
starting with @test. procedure test1: end procedure /* test1 */. @test. procedure test2: end procedure /* test2 */. With some real test stuff in the procedures, mostly logging. I tested: @Ignore. @test. @test. @Ignore. @Ignore. @test. @test. @Ignore. In every case it worked exactly the way I wanted it to, it ignored the test. When I removed the first @test but kept the @Ignore, test2 ran (as desired). The scope of the @Ignore in a Test Procedure is the end of the procedure immediately following. I know this because if the @Ignore is inside a procedure, it has no effect on a following @test, but it will affect an @test preceding the enclosing procedure. @test. procedure test1: @Ignore. /* test code */ end procedure /* test1 */. works just fine, it doesn't matter which line the @Ignore is on (but I only tested first and last). On the other hand, @test. procedure test1: end procedure /* test1 */. @Ignore. @test. procedure test2: end procedure /* test2 */. ignores test2. This is all as it should be. So, well done on the @Ignore.

Continue reading...
 
Status
Not open for further replies.
Back
Top