Sarah Hoffmann
4aba70caee
create a temporary project dir for tests
...
The project directory contains the website script as
configured through the test configuration. This means
that tests are now completely independet of any
configuration that may be contained in the build
directory.
Also removes the hack to inject additional settings via
a environment variable.
2021-01-04 11:39:45 +01:00
Sarah Hoffmann
4ca7197826
replace nose assertions with simple asserts
2021-01-03 17:21:24 +01:00
Sarah Hoffmann
d97aed8741
adapt tests to new dotenv environment
...
DB tests now can simply set the environment to change configuration
variables. API tests still rely on a configuration file.
Also, query.php needs to set up the CONST_* variables to work with
the query scripts. That is a tiny bit messy and duplicates code
but this part will need to be reworked later.
2020-12-19 14:33:04 +01:00
Sarah Hoffmann
d86cf6801f
remove tests for HTML output
2020-10-29 11:13:32 +01:00
Sarah Hoffmann
ca680fc9fc
make housenumber interpolation tests more lenient
2020-10-11 12:04:53 +02:00
Sarah Hoffmann
8150c3602b
add tests for geocodejson address fields
2020-04-01 11:14:48 +02:00
Sarah Hoffmann
acd8ca2ebd
add testing for rank adaption while linking
2020-02-28 15:22:48 +01:00
marc tobias
1560685020
lookup endpoint supports jsonv2 and geocodejson output now
2019-07-21 23:20:48 +02:00
marc tobias
d4b633bfc5
replace database abstraction DB with PDO
2019-03-09 00:18:15 +01:00
marc tobias
e4a51e460e
set exception handler by request format, not always HTML
2018-10-03 22:58:20 +02:00
Sarah Hoffmann
88374c2522
improve test coverage for reverse and debug output
2018-08-20 23:05:49 +02:00
Sarah Hoffmann
646fa53b44
improve place node search when no areas found
...
Only look for place nodes in a certain radius according
to the rank_search of the place node.
2018-08-04 21:51:23 +02:00
Sarah Hoffmann
be58b929f2
add tests for geocodejson and fix syntax errors
2018-07-12 22:00:18 +02:00
Marc Tobias Metten
7a964efb3a
search/reverse/lookup with geojson,geocodejson output
2018-05-29 17:20:34 +02:00
Sarah Hoffmann
f29c7bf910
introduce classes for token list and token types
2018-05-14 23:04:15 +02:00
mtmail
7075a5828e
add JSON format to /status endpoint ( #1013 )
...
add JSON format to /status endpoint
2018-05-04 23:37:48 +02:00
Marc Tobias Metten
1e28f2478c
details support json output
2018-04-12 22:01:10 +02:00
mtmail
3cdbcbff8f
get apt-get php-db package running on travis-ci ( #973 )
...
travis: /usr/bin/env php whenever calling PHP scripts to deal with phpenv
2018-04-12 00:54:59 +02:00
Sarah Hoffmann
81a7ea36db
more API tests (mostly for user errors)
2017-09-19 23:06:31 +02:00
Sarah Hoffmann
3fba5e7867
enable code coverage computation for API BDD tests
...
Fixes #505 .
2017-07-17 22:59:13 +02:00
Sarah Hoffmann
d18bd14045
add test for moreURL issue and debugging of test query contents
2017-01-01 17:58:21 +01:00
Sarah Hoffmann
b2be8c3ab7
move php tests in common test dir and unify READMEs
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
b2c1d086b5
add api tests for language, details and lookup
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
3a787df934
add remaining reverse tests
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
635ce30db5
add simple reverse API tests
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
201f618cc7
finish search API tests
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
81922fc057
more API search tests
...
also move directory name back to api
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
b9a58b8f24
add simple direct API search tests
...
API tests now no longer require a running Apache installation,
instead the website php scripts are called directly using the
appropriate enivronment.
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
0e9e2bbdca
add tests for updating linked features
2016-12-30 22:58:58 +01:00
Sarah Hoffmann
47f94c6988
simple search steps
2016-12-30 22:58:57 +01:00
Sarah Hoffmann
c56c09e2c0
rename and add basic tests
2016-12-30 22:58:57 +01:00