[EPIC] Minimal test suite for Engine API
All tests should be runnable with a Make target:
make test
Sub Tasks
- Commit the OpenAPI generated tests into "./test... (#24 - closed)
- Add test coverage and display badge (#40 - closed)
- Eventually add more test cases to improve the coverage
Designs
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- David Trattnig changed milestone to %1.2
changed milestone to %1.2
- David Trattnig changed milestone to %1.1
changed milestone to %1.1
- David Trattnig assigned to @david
assigned to @david
- Author Owner
Note, Codegen currently also generates some dysfunctional code blocks. E.g. In case of Boolean example values:
is_synced: type: boolean example: true
(swagger.yaml)
results in an invalid test case:
def test_list_playlog(self): """Test case for list_playlog List tracks in the play-log since the given timestamp """ query_string = [('from_date', '2013-10-20T19:20:30+01:00'), ('to_date', '2013-10-20T19:20:30+01:00'), ('page', 56), ('limit', 200), ('skip_synced', true)] response = self.client.open( '/api/v1/playlog/', method='GET', query_string=query_string) self.assert200(response, 'Response body is : ' + response.data.decode('utf-8'))
Here the boolean value in
('skip_synced', true)
should be either a Python BooleanTrue
literal or a String value'true'
.(@sumpfralle thanks for pointing that out)
Additionally, when implementing the test suite, the test cases should be located in the
./tests
folder - David Trattnig mentioned in issue #21 (closed)
mentioned in issue #21 (closed)
- David Trattnig changed title from Minimal test suite for Engine API to Minimal test suite for Engine API (Integration Tests)
changed title from Minimal test suite for Engine API to Minimal test suite for Engine API (Integration Tests)
- David Trattnig marked this issue as related to #24 (closed)
marked this issue as related to #24 (closed)
- David Trattnig changed milestone to %1.0-beta1
changed milestone to %1.0-beta1
- David Trattnig added P2 label
added P2 label
- David Trattnig changed title from Minimal test suite for Engine API (Integration Tests) to Minimal test suite for Engine API
changed title from Minimal test suite for Engine API (Integration Tests) to Minimal test suite for Engine API
- David Trattnig changed title from Minimal test suite for Engine API to [EPIC] Minimal test suite for Engine API
changed title from Minimal test suite for Engine API to [EPIC] Minimal test suite for Engine API
- David Trattnig changed the description
changed the description
- David Trattnig marked this issue as related to #40 (closed)
marked this issue as related to #40 (closed)
- David Trattnig changed milestone to %1.0-alpha2 —
Precise Pheasantchanged milestone to %1.0-alpha2 —
Precise Pheasant - David Trattnig added EPIC label
added EPIC label
- David Trattnig mentioned in issue #24 (closed)
mentioned in issue #24 (closed)
- David Trattnig mentioned in issue #40 (closed)
mentioned in issue #40 (closed)
- David Trattnig assigned to @chrizz and unassigned @david
- David Trattnig mentioned in issue #41 (closed)
mentioned in issue #41 (closed)