projectblacklight/blacklight — pull request #846 by cbeer (2014-03-20 02:50:19+00:00)
Title: add blacklight:check rake tasks for checking solr and controller configurations

I'm not sure how widely desired this is, but I think it will be handy for trying to teach Blacklight, and hopefully useful in other contexts too. Here are the important checks I could think of:

```console
$ rake blacklight:check:solr
[http://127.0.0.1:8983/solr/]
- admin/ping: OK
```

```console
$ rake blacklight:check:controller
[CatalogController]
- find: OK
- get_search_results: OK
- get_solr_response_for_doc_id: OK
```

```console
$ rake blacklight:check:controller VERBOSE=true
[CatalogController]
- find: OK
status: 0
numFound: 30
doc count: 10
facet fields: 9
- get_search_results: OK
status: 0
numFound: 30
doc count: 10
facet fields: 7
- get_solr_response_for_doc_id: OK
status: 0
```

```console
$ rake blacklight:check:controller[BookmarksController]
[BookmarksController]
- find: OK
- get_search_results: OK
- get_solr_response_for_doc_id: OK
```

Fixes #812