Branch: refs/heads/master
Home: https://github.com/yi-editor/yi
Commit: 4260476067d10abab7c4279a2ad8d9ff048f013a
https://github.com/yi-editor/yi/commit/4260476067d10abab7c4279a2ad8d9ff048f013a
Author: Ben Armston <[email protected]>
Date: 2014-01-17 (Fri, 17 Jan 2014)
Changed paths:
M yi/src/tests/TestExParser.hs
M yi/src/tests/TestSuite.hs
M yi/src/tests/TestVim.hs
Log Message:
-----------
Tests for Vim2 ex command parsers
These tests check two things:
1. The parser successfully parses the commands it is expected to.
2. For each sample string, the expected `ExCommand` is selected from the
`defExCommandParsers`.
They don't check that any `ExCommand` has the affect that it should. Some of
the tests in `TestVim.getTestGroup` do that.
Generating the sample strings for each ex command parser is currently a manual
exercise. Which is why there are currently tests for only a few commands. It
should be possible to generate the command strings using SmallCheck or
QuickCheck.
Commit: e2a3583450e355dabffb84629282b2778c09d832
https://github.com/yi-editor/yi/commit/e2a3583450e355dabffb84629282b2778c09d832
Author: Ben Armston <[email protected]>
Date: 2014-01-18 (Sat, 18 Jan 2014)
Changed paths:
M yi/src/tests/TestExParser.hs
M yi/yi.cabal
Log Message:
-----------
QuickCheck generates the command strings to parse
Instead of manually generating a hopefully exhaustive set of command strings
to test, use QuickCheck to generate them.
Each ex command parser to test is now contained in a `CommandParser` record.
Along with the parser, the record contains all of the synonyms for the
command, whether the command accepts a `!`, and a `Gen`erator or command line
arguments it is expected to parse.
A number of combinators have been written to ease the generation of arguments.
Currently, only three parsers are tested. However, it should be simple to add
new ones.
Commit: dabfca57a36523fce8b4db99d4d5219c758f5d4c
https://github.com/yi-editor/yi/commit/dabfca57a36523fce8b4db99d4d5219c758f5d4c
Author: Ben Armston <[email protected]>
Date: 2014-01-18 (Sat, 18 Jan 2014)
Changed paths:
M yi/src/tests/TestExParser.hs
M yi/src/tests/TestSuite.hs
M yi/src/tests/TestVim.hs
M yi/yi.cabal
Log Message:
-----------
Switch form TestFramework to Tasty
In his branch on changing `Rope` to use `Text` instead of `ByteString`,
ethercrow has switched from TestFramework to Tasty. I shall follow his lead
and adjust these too.
I've also reverted `getTestGroup` back to `getTests`.
Commit: 4efc41a5e9b238f71d9c46bb0577d741f126b6b4
https://github.com/yi-editor/yi/commit/4efc41a5e9b238f71d9c46bb0577d741f126b6b4
Author: Ben Armston <[email protected]>
Date: 2014-01-18 (Sat, 18 Jan 2014)
Changed paths:
M yi/src/tests/TestSuite.hs
A yi/src/tests/TestVim2PureEditorManipulations.hs
Log Message:
-----------
Tests for pure-editor-manipulating Vim2 actions
The TestVim module provides a nice mechanism for writing tests which are 1)
pure and 2) affect only a single buffer. It doesn't provide a mechanism for
tests which affect more than a single buffer.
Pure manipulations of the editor refers to such things as changing layout,
navigating buffers, creating or deleting buffers, creating or deleting tabs.
In short, anything which 1) doesn't perform IO and 2) interacts with something
other than a single buffer.
This module provides the start of a basis for writing such tests.
Commit: 882dbadb942787e248c2d199eeae35e7e91a7835
https://github.com/yi-editor/yi/commit/882dbadb942787e248c2d199eeae35e7e91a7835
Author: Ben Armston <[email protected]>
Date: 2014-01-18 (Sat, 18 Jan 2014)
Changed paths:
R yi/src/tests/TestExParser.hs
M yi/src/tests/TestSuite.hs
A yi/src/tests/TestUtils.hs
R yi/src/tests/TestVim.hs
R yi/src/tests/TestVim2PureEditorManipulations.hs
A yi/src/tests/Vim2/EditorManipulations/BufferExCommand.hs
A yi/src/tests/Vim2/TestExCommandParsers.hs
A yi/src/tests/Vim2/TestPureBufferManipulations.hs
A yi/src/tests/Vim2/TestPureEditorManipulations.hs
A yi/src/tests/Vim2/TestUtils.hs
Log Message:
-----------
Refactor of Vim2 keymap tests
- A `Vim2` module houses all of the Vim2 keymap specific tests.
- Split what was `TestVim2PureEditorManipulations` into a number of modules.
`Vim2.TestUtils` contains utility functions for testing the Vim2 keymaps.
`Vim2.EditorManipulations.BufferExCommand` contains tests of the `:buffer`
ex command under the Vim2 keymap. `Vim2.TestPureEditorManipulations` pulls
the `Vim2.EditorManipulations.BufferExCommand` tests into a test group.
- Renamed `TestVim` to `Vim2.TestPureBufferManipulations` to reflect that 1)
it tests the Vim2 keymaps (not the Vim keymaps); 2) it isn't the only set
of tests for the Vim2 keymaps; and 3) what it tests are pure manipulations
of a single buffer.
Commit: 30dfd2bfc8dde43cf44726764d212a026d4fb0e4
https://github.com/yi-editor/yi/commit/30dfd2bfc8dde43cf44726764d212a026d4fb0e4
Author: Ben Armston <[email protected]>
Date: 2014-01-19 (Sun, 19 Jan 2014)
Changed paths:
M yi/src/tests/Vim2/TestPureBufferManipulations.hs
M yi/src/tests/Vim2/TestUtils.hs
Log Message:
-----------
Refactor mkTestCase to use runTest
Refactor `mkTestCase` in `TestPureBufferManipulations` to use `runTest` and
functions from `Vim2.TestUtils`.
Commit: 760acfc464e4b71edc85037beceedf53bc4a1884
https://github.com/yi-editor/yi/commit/760acfc464e4b71edc85037beceedf53bc4a1884
Author: Ben Armston <[email protected]>
Date: 2014-01-19 (Sun, 19 Jan 2014)
Changed paths:
M yi/src/library/Yi/Keymap/Vim2/Ex/Commands/Buffer.hs
M yi/src/tests/Vim2/TestExCommandParsers.hs
Log Message:
-----------
Fix parser tests
Include `%` and `#` in the buffer identifier generator, and fix the `:buffer`
command parser to parse them. Specify the correct arguments which `:bdelete`
should parse.
Commit: f5cc4ee35f5b5cbfdb1e719a9550cb443d72a916
https://github.com/yi-editor/yi/commit/f5cc4ee35f5b5cbfdb1e719a9550cb443d72a916
Author: Ben Armston <[email protected]>
Date: 2014-01-19 (Sun, 19 Jan 2014)
Changed paths:
M yi/src/tests/Vim2/TestPureBufferManipulations.hs
M yi/src/tests/Vim2/TestPureEditorManipulations.hs
Log Message:
-----------
Add and correct module documentation
Commit: b5e7117b59738d0a2275038feb48eec44d41fa33
https://github.com/yi-editor/yi/commit/b5e7117b59738d0a2275038feb48eec44d41fa33
Author: Ben Armston <[email protected]>
Date: 2014-01-19 (Sun, 19 Jan 2014)
Changed paths:
R yi/src/tests/TestUtils.hs
Log Message:
-----------
Remove accidentally committed file
Commit: 9db407acf412f5e1945f191418d82f0b43b3883e
https://github.com/yi-editor/yi/commit/9db407acf412f5e1945f191418d82f0b43b3883e
Author: Ben Armston <[email protected]>
Date: 2014-01-22 (Wed, 22 Jan 2014)
Changed paths:
M yi/src/tests/Vim2/TestExCommandParsers.hs
Log Message:
-----------
Remove commented out code
Commit: 71fd210afaff63fc696720ec3b0fa83e7618f8dd
https://github.com/yi-editor/yi/commit/71fd210afaff63fc696720ec3b0fa83e7618f8dd
Author: Ben Armston <[email protected]>
Date: 2014-01-22 (Wed, 22 Jan 2014)
Changed paths:
M yi/src/tests/Vim2/EditorManipulations/BufferExCommand.hs
M yi/src/tests/Vim2/TestExCommandParsers.hs
M yi/src/tests/Vim2/TestPureBufferManipulations.hs
Log Message:
-----------
Fix hlink warnings in Vim2 test directory
Commit: 086bb31e4058b5e174cd89cf2c8659a21f5bc51f
https://github.com/yi-editor/yi/commit/086bb31e4058b5e174cd89cf2c8659a21f5bc51f
Author: Dmitry Ivanov <[email protected]>
Date: 2014-01-22 (Wed, 22 Jan 2014)
Changed paths:
M yi/src/library/Yi/Keymap/Vim2/Ex/Commands/Buffer.hs
R yi/src/tests/TestExParser.hs
M yi/src/tests/TestSuite.hs
R yi/src/tests/TestVim.hs
A yi/src/tests/Vim2/EditorManipulations/BufferExCommand.hs
A yi/src/tests/Vim2/TestExCommandParsers.hs
A yi/src/tests/Vim2/TestPureBufferManipulations.hs
A yi/src/tests/Vim2/TestPureEditorManipulations.hs
A yi/src/tests/Vim2/TestUtils.hs
M yi/yi.cabal
Log Message:
-----------
Merge pull request #498 from benarmston/improve-vim2-keymap-tests
Improve vim2 keymap tests
Compare: https://github.com/yi-editor/yi/compare/35a45e5d63e5...086bb31e4058
--
--
Yi development mailing list
[email protected]
http://groups.google.com/group/yi-devel
---
You received this message because you are subscribed to the Google Groups
"yi.devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.