Comments (13)
On Sunday, November 27, 2011, Trey Hunner <
[email protected]>
wrote:
I think we should add test cases for the EditorConfig core to ensure that
future changes maintain backwards compatibility and do not any break
current functionality.It looks like cmake is bundled with a test suite called ctest. Maybe we
should use that.
I agree. I am now try to do this.
Hong
from editorconfig.
The general test mechanism has been implemented: aa726008d0f024cd7c89c43eec377fda22cb9df9
Now what we need to do is to add testing cases.
from editorconfig.
Maybe we should group our test cases into files of like tests. For example the current three test cases for question mark, asterisk, and square brackets could be grouped into one file called test_globs.in
.
Here are some starter test file groups I propose:
test_globs.in
: used for testing globbing functionalitytest_properties.in
: used for property-specific tests (such as lowercasing eol or setting default values)test_ini.in
: used for testing INI parsing edge cases and section parsing ordertest_args.in
: used for testing command line arguments (e.g.--version
)
from editorconfig.
Would test_properties be very long in the future?
from editorconfig.
It may be. We could make a subdirectory called property_tests and add property-specific tests in individual files.
from editorconfig.
Maybe we could use 4 subdirectories for the four categories respectively.
from editorconfig.
That works for me.
from editorconfig.
I think we should remove the test_
prefix from the test directories and files because they are redundant. What do you think?
from editorconfig.
I agree.
from editorconfig.
test_
prefix removed. ee83a1241450b9002d683b2718232a083b46be14
from editorconfig.
According to your recent commit, it seems that you have forgotten that test_
should be removed.
Just a remind here.
from editorconfig.
Ah yes I had started making that file before we changed the naming scheme. Thanks for fixing.
from editorconfig.
The test coverage now seems reasonable to me. I'm closing this.
If we discover gaps in test case coverage in the future new issues should be made to handle them.
from editorconfig.
Related Issues (20)
- Feature Request: Strip multiple blank lines from the end of the file HOT 3
- Neovim editorconfig integration HOT 4
- cpp_space_before_inheritance_colon not interpreting correctly HOT 3
- Prevent block comments HOT 2
- Wiki link to `EditorConfig-Properties` is 404 HOT 3
- [Question] - line endings git attributes and editor config HOT 2
- property suggestion: save/backup strategy
- Setting Request: Max number of indent levels HOT 7
- Language server for editing `.editorconfig` file? HOT 2
- Forbid section names ending with a slash
- Idea: specify, in EditorConfig files, which git strategy is used by a project HOT 3
- Should `key =` be considered valid (meaning `key` is set to empty string)? HOT 7
- Spec clarification: "should" -> "must" be utf-8 HOT 1
- Add @cxw42 to the board HOT 1
- Spec should clarify that slash must be escaped in brackets
- Spec incorrectly prohibits spaces around section-name square brackets HOT 1
- Should/is it possible for .editorconfig to be used/involved in validation of folder structure/layout, file/folder names, etc HOT 1
- How to have different setting for different platforms? HOT 1
- Question: Are generally unsupported properties breaking? HOT 3
- Option to permit different indentations inside and outside multiline strings HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from editorconfig.