Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
remove testng support
Browse files Browse the repository at this point in the history
  • Loading branch information
ervandew committed Nov 10, 2020
1 parent d047dbe commit f661be0
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 102 deletions.
40 changes: 0 additions & 40 deletions ant/ext/testng/org/eclim/testng/TestNgListener.java

This file was deleted.

Binary file removed ant/lib/testng-5.1-jdk15.jar
Binary file not shown.
39 changes: 1 addition & 38 deletions doc/content/vim/java/unittests.rst
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.. Copyright (C) 2005 - 2016 Eric Van Dewoestine
.. Copyright (C) 2005 - 2020 Eric Van Dewoestine
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -180,40 +180,3 @@ Configuration
.. code-block:: cfg
org.eclim.java.junit.envvars=["FOO=bar"]
TestNG
------

Currently eclim's support for TestNG_ is limited to supporting Vim's :make in
conjunction with ant to populate vim's quickfix results with failed tests.

By default TestNG's output to the console is very terse. So in order to support
monitoring of failed tests via vim's error format, eclim provides a custom
TestNG listener which must be installed into your build environment.

#. The first step is to place the ``eclim-testng.jar`` file in your TestNG
classpath you have configured for ant. You can find this jar file in your
$ECLIPSE_HOME/plugins/org.eclim.jdt_version/ directory.
#. The second step is to add the ``listener`` attribute to your
testng task which references the required eclim testng listener\:

::

...
<testng ... listener="org.eclim.testng.TestNgListener">
...

See the `testng ant task docs`_ for more information.

Once you have completed that setup, you should then be able to run your ant
target from vim and (as long as eclim is running) all failed tests will be
added to your vim quickfix results.

Ex. Assuming your ant task is named 'test':

.. code-block:: vim
:Ant test
.. _testng: http://testng.org/doc
.. _testng ant task docs: http://testng.org/doc/ant.html
17 changes: 0 additions & 17 deletions org.eclim.jdt/build_jdt.gant
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,6 @@ target(name: 'org.eclim.jdt.classpath'){
}
}

target(name: 'org.eclim.jdt.build.eclipse'){
// build the eclim testng listener
mkdir(dir: '${build.classes}/testng')
javac(
destdir: '${build.classes}/testng',
srcdir: 'ant/ext/testng',
debug: 'on', optimize: false,
target: '1.8', source: '1.8',
failonerror: true,
includeantruntime: false){
classpath{fileset(dir: 'ant/lib', includes: 'testng-*.jar')}
}
jar(jarfile: '${build.plugins}/org.eclim.jdt_${eclim.version}/eclim-testng.jar'){
fileset(dir: '${build.classes}/testng', includes: '**/*')
}
}

target(name: 'org.eclim.jdt.test'){
depends('test.init')
runTests('org.eclim.jdt'){
Expand Down
8 changes: 2 additions & 6 deletions org.eclim.jdt/vim/eclim/autoload/eclim/java/tools.vim
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"
" License:
"
" Copyright (C) 2005 - 2017 Eric Van Dewoestine
" Copyright (C) 2005 - 2020 Eric Van Dewoestine
"
" This program is free software: you can redistribute it and/or modify
" it under the terms of the GNU General Public License as published by
Expand All @@ -29,10 +29,6 @@
let s:entry_text_replace{'junit'} = '.*[junit] '
let s:entry_text_with{'junit'} = ''

let s:entry_match{'testng'} = 'eclim testng:'
let s:entry_text_replace{'testng'} = '.*eclim testng: .\{-}:'
let s:entry_text_with{'testng'} = ''

let s:open_console = 'Open jconsole'
let s:view_info = 'View Info'
let s:view_stacks = 'View Stacks'
Expand All @@ -56,7 +52,7 @@ function! eclim#java#tools#MakeWithJavaBuildTool(compiler, bang, args) " {{{
augroup eclim_make_java_test
autocmd!
autocmd QuickFixCmdPost make
\ call eclim#java#tools#ResolveQuickfixResults(['junit', 'testng'])
\ call eclim#java#tools#ResolveQuickfixResults(['junit'])
augroup END

try
Expand Down
1 change: 0 additions & 1 deletion org.eclim.jdt/vim/eclim/compiler/eclim_ant.vim
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ exec 'CompilerSet errorformat=' .
\ '\%-Z%.%#[scalac]\ %p^,' .
\ '\%A%.%#[scalac]\ %f:%l:\ %m,' .
\ '\%-Z%.%#[scalac]\ %p^,' .
\ '\%+A%.%#eclim\ testng:\ %f:%m,' .
\ '\%.%#\ ERROR\ %.%#\ line\ %l\ in\ file:\ %.%f%.:\ %m,' .
\ g:EclimAntCompilerAdditionalErrorFormat .
\ '\%.%#[exec]\ %f:%l:%c:\ %m,' .
Expand Down

0 comments on commit f661be0

Please sign in to comment.