aboutsummaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | Test new sx-method functionalitySean Allred2015-01-021-0/+4
| | | |
* | | | Introduce `sx-request-all-items'Sean Allred2015-01-021-0/+5
|/ / / | | | | | | | | | | | | | | | | | | This function repeatedly makes API requests until a condition is satisfied (such as 'no more items'). First and foremost, this will allow us to retrieve all tags for a site.
* | | Fix docstringSean Allred2015-01-011-1/+1
| | |
* | | Remove redundant consingSean Allred2015-01-011-1/+1
| |/ |/|
* | Prune sx--filter-dataSean Allred2015-01-011-35/+0
| |
* | Add toggle for detailed test messagesSean Allred2015-01-012-1/+14
| |
* | Docstrings for testsSean Allred2015-01-013-9/+13
| |
* | Simplify question list display testsSean Allred2015-01-011-3/+21
| | | | | | | | | | Use a macro (using `rx') to create the regular expression for the question list display test.
* | Use test fixture for sample dataSean Allred2015-01-011-14/+17
| | | | | | | | See (info "(ert) Fixtures and Test Suites").
* | Split tests into separate filesSean Allred2015-01-015-152/+169
| |
* | Test sx-assoc-let according to functionalitySean Allred2014-12-301-13/+15
| | | | | | | | | | | | | | | | | | | | See http://emacs.stackexchange.com/q/5915/2264 and #151 for more information. This patch tests for functional equivalence rather than symbolic equivalence. Symbolic equivalence would be far preferable, but it does not appear to be happening anytime soon -- perhaps when things settle down a bit for the authors :)
* | Fix `sx-assoc-let' testsSean Allred2014-12-201-7/+9
| | | | | | | | | | `require' form is no longer needed -- macro expansion is done with the expansion of `sx-assoc-let'.
* | Test sx-assoc-let not let-alistArtur Malabarba2014-12-181-11/+5
|/ | | | | Since let-alist is no longer defined here. It makes no sense to test its contents.
* Hotfix testsArtur Malabarba2014-12-151-2/+4
|
* Fix test againArtur Malabarba2014-12-131-4/+4
|
* Stricter regexpArtur Malabarba2014-12-121-3/+3
|
* Fix unrelated testArtur Malabarba2014-12-111-3/+3
|
* Fix assoc-let testArtur Malabarba2014-12-111-7/+9
|
* Merge branch 'master' into fix-@highligthingArtur Malabarba2014-12-091-2/+34
|\ | | | | | | | | Conflicts: test/tests.el
| * Add tests for `sx--thing-as-string'Sean Allred2014-12-021-0/+32
| |
* | Define test for sx--user-@nameArtur Malabarba2014-12-041-0/+11
|/ | | | Source of the replacements: http://stackapps.com/a/5022/3776
* Fix testArtur Malabarba2014-11-241-0/+1
|
* Fix testArtur Malabarba2014-11-241-1/+1
|
* Merge branch 'master' into sx-method-auth. Conflicts have beenJonathan Leech-Pepin2014-11-211-1/+0
|\ | | | | | | | | | | | | | | | | | | | | | | | | resolved. Logic and functions have been kept from the `cl-defun` `sx-method-call` while docstrings have been updated as per #77 when possible. Conflicts: sx-auth.el sx-method.el sx-question.el sx-request.el
| * Documentation -- part oneSean Allred2014-11-171-1/+0
| | | | | | | | Pushing this change to continue work elsewhere.
* | Typo fix.Jonathan Leech-Pepin2014-11-201-1/+1
| |
* | Do not initialize Stack-Mode.Jonathan Leech-Pepin2014-11-201-0/+1
|/ | | | | Initializing will retrieve user preferences/authentication. We do not need this.
* Add tests for `sx-assoc-let'Sean Allred2014-11-121-0/+16
|
* Move defmacro to head of fileSean Allred2014-11-121-8/+8
|
* Abstract out method callsSean Allred2014-11-081-0/+1
| | | | | | | | | | | Keeping method calls within `sx-request.el' was causing circular requirements. This commit sorts through all of the requirements for each of the files and ensures that this does not happen. Much of the content removed was for `sx-request-default-keyword-arguments-alist' and related items. It was unused, so it was pruned. If it is deemed necessary in the future, it should be included in `sx-method.el'.
* Re-work filtering and cachingSean Allred2014-11-081-20/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * sx-auth.el - Use new symbolic cache access * sx-cache.el - Implement symbolic cache access * sx-filter.el - Use symbolic cache access - Compile and save filters on-demand (more work to be done to this end) * sx-question.el - Symbolic filters * sx-request.el - Protection against infinitely recursing when compiling a filter This will be re-worked into requests (a front-end function) and 'raw' requests (a back-end function). The front-end will add convenience to the back-end. * test/tests.el Remove outdated tests
* Finish name changesSean Allred2014-11-081-15/+15
|
* Update names in testSean Allred2014-11-071-32/+32
|
* Comment out "*stack-question*" buffer testArtur Malabarba2014-11-061-2/+3
|
* Fix test regexpArtur Malabarba2014-11-061-3/+3
|
* package-initialize on testsArtur Malabarba2014-11-061-1/+5
|
* Fix question list testing (for real).Artur Malabarba2014-11-061-19/+26
|
* Fix question list testsArtur Malabarba2014-11-061-3/+11
|
* Add tests for the question-listArtur Malabarba2014-11-061-4/+21
|
* Fix test sample.Artur Malabarba2014-11-031-4/+3
|
* A couple of json samples, just in case.Artur Malabarba2014-11-032-0/+5
|
* Fix sampler functionArtur Malabarba2014-11-031-1/+4
|
* Make question samples more complete.Artur Malabarba2014-11-031-509/+3925
|
* Fix get-sample-data and avoid `find-file-noselect'Sean Allred2014-11-021-8/+7
|
* Let-bind stack-cache-directory insteadSean Allred2014-11-021-1/+1
| | | | | There are several variables and functions that depend on it; simply binding the filter-cache file isn't enough.
* Let-bind user-emacs-directory to cwdSean Allred2014-11-021-8/+9
| | | | | | | Useful for testing locally, since now you can simply blow away the `.stackmode' directory instead of searching for it in `.emacs.d'. At any rate, it keeps everything in the project tidy.
* Consolidate testing variables and print requestsSean Allred2014-11-021-2/+4
|
* Fix test cases re file persistenceSean Allred2014-11-021-15/+14
| | | | | | | | | Every time the test was getting run, it would create the file, but not delete it. This meant that tests were not idempotent and artifacts from previous tests were persisting into the next ones. Use `make-temp-file' to let-bind `stack-filter-cache-file' to a temporary file. It is guaranteed to be empty when the tests begin.
* Introduce persistent storage for filtersSean Allred2014-11-021-0/+19
|
* Use a simpler construct to test filter inclusionSean Allred2014-11-021-32/+0
| | | | | Also removed tests for `stack-core-filter-data--item-in-tree' since it no longer exists.