<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rneovim.git/scripts/run-api-tests.exp, branch colorcolchar</title>
<subtitle>Neovim fork with Rahm's personal hacks.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/'/>
<entry>
<title>remove scripts/run-api-tests.exp</title>
<updated>2018-04-10T22:56:36+00:00</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2018-04-10T21:24:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=f19db1b9ba864e4e57cc9ee29763ae5f74bcb415'/>
<id>f19db1b9ba864e4e57cc9ee29763ae5f74bcb415</id>
<content type='text'>
Usage of this script was removed 0c2ec77ae0c0.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Usage of this script was removed 0c2ec77ae0c0.
</pre>
</div>
</content>
</entry>
<entry>
<title>server: Rename address environment variable</title>
<updated>2014-09-14T00:35:47+00:00</updated>
<author>
<name>Thiago de Arruda</name>
<email>tpadilha84@gmail.com</email>
</author>
<published>2014-09-13T19:20:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=2d1b5589e850ac7e35574790539cff6430bfa14f'/>
<id>2d1b5589e850ac7e35574790539cff6430bfa14f</id>
<content type='text'>
To follow the pattern of using NVIM for technical descriptions, it was renamed
to NVIM_LISTEN_ADDRESS
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
To follow the pattern of using NVIM for technical descriptions, it was renamed
to NVIM_LISTEN_ADDRESS
</pre>
</div>
</content>
</entry>
<entry>
<title>test: Remove cleanup function definition from run-api-tests.exp</title>
<updated>2014-08-28T17:07:31+00:00</updated>
<author>
<name>Thiago de Arruda</name>
<email>tpadilha84@gmail.com</email>
</author>
<published>2014-08-12T17:56:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=b744073fae555ca362bcd40e47c7ce3849206e50'/>
<id>b744073fae555ca362bcd40e47c7ce3849206e50</id>
<content type='text'>
This function is now injected automatically when running the python-client tests
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This function is now injected automatically when running the python-client tests
</pre>
</div>
</content>
</entry>
<entry>
<title>api tests: set 'initpython' in BeforeEachTest</title>
<updated>2014-07-17T14:37:42+00:00</updated>
<author>
<name>Thiago de Arruda</name>
<email>tpadilha84@gmail.com</email>
</author>
<published>2014-07-16T19:51:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=4dc642aa622cfac09f2f4752907137d68d8508fe'/>
<id>4dc642aa622cfac09f2f4752907137d68d8508fe</id>
<content type='text'>
This is required to run some tests of the python client
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is required to run some tests of the python client
</pre>
</div>
</content>
</entry>
<entry>
<title>build: increase timeout for run-api-tests.exp</title>
<updated>2014-06-18T14:36:07+00:00</updated>
<author>
<name>Thiago de Arruda</name>
<email>tpadilha84@gmail.com</email>
</author>
<published>2014-06-18T14:28:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=72907c34f47ade2ddd9e8565c12dc8e1eebe0730'/>
<id>72907c34f47ade2ddd9e8565c12dc8e1eebe0730</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Build: Fix autocmd removal from cleanup function</title>
<updated>2014-05-28T11:52:54+00:00</updated>
<author>
<name>Thiago de Arruda</name>
<email>tpadilha84@gmail.com</email>
</author>
<published>2014-05-28T11:42:14+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=a001b8cb0ca87a90e89b74440ee3d8d5f41044d3'/>
<id>a001b8cb0ca87a90e89b74440ee3d8d5f41044d3</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>API: Test: Setup basic test infrastructure</title>
<updated>2014-05-23T19:06:59+00:00</updated>
<author>
<name>Thiago de Arruda</name>
<email>tpadilha84@gmail.com</email>
</author>
<published>2014-05-23T18:49:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.josher.dev/cgit/rneovim.git/commit/?id=6c96e42e2c18bd6ae685b5a41c69b03954aa0375'/>
<id>6c96e42e2c18bd6ae685b5a41c69b03954aa0375</id>
<content type='text'>
- Add a 'expect' utility script that can run simple API tests using clients
  developed for any platform.
- Extend travis build matrix to run API tests using the python client and
  valgrind.

This script can be used to write API tests without having to manage nvim's
lifetime:

- It starts a single nvim instance listening on a known socket
- Invokes the test runner, which should connect to NEOVIM_LISTEN_ADDRESS
- The nvim instance started by the script provides a `BeforeEachTest` function,
  which should be called before each test to reset nvim to a clean state.
- It takes care of shutting down nvim once the tests are finished.

As explained
[here](https://github.com/neovim/neovim/pull/737#issuecomment-43941520), it's
not possible to fully reset nvim to it's initial state, but the `BeforeEachTest`
function should be enough for most test cases. Tests requiring a fully clean
nvim instance should take care of starting/stopping nvim.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- Add a 'expect' utility script that can run simple API tests using clients
  developed for any platform.
- Extend travis build matrix to run API tests using the python client and
  valgrind.

This script can be used to write API tests without having to manage nvim's
lifetime:

- It starts a single nvim instance listening on a known socket
- Invokes the test runner, which should connect to NEOVIM_LISTEN_ADDRESS
- The nvim instance started by the script provides a `BeforeEachTest` function,
  which should be called before each test to reset nvim to a clean state.
- It takes care of shutting down nvim once the tests are finished.

As explained
[here](https://github.com/neovim/neovim/pull/737#issuecomment-43941520), it's
not possible to fully reset nvim to it's initial state, but the `BeforeEachTest`
function should be enough for most test cases. Tests requiring a fully clean
nvim instance should take care of starting/stopping nvim.
</pre>
</div>
</content>
</entry>
</feed>
