Skip to content

Commit

Permalink
Work on test coverage report for CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Jan 8, 2016
1 parent 5dc6893 commit 4275b39
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ install:

# command to run tests
script:
- python setup.py test
- coverage run --source arcade setup.py test

deploy:
provider: pypi
Expand Down
41 changes: 40 additions & 1 deletion arcade/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,46 @@


class ArcadeApplication():
""" Main application class for an Arcade application. """
"""
Main application class for an Arcade application.
:Example
>>> import arcade
>>>
>>> class MyApplication(arcade.ArcadeApplication):
...
... def __init__(self):
... pass
...
... def render(self):
... arcade.start_render()
... # Draw stuff here
... arcade.swap_buffers()
...
... def key_pressed(self, key, x, y):
... pass
...
... def special_pressed(self, key, x, y):
... pass
...
... def special_released(self, key, x, y):
... pass
...
... def animate(self):
... # Update items here
... arcade.redisplay()
...
... def run(self):
... self.open_window(500, 500)
...
... # Enable the line below to keep the window up.
... # Disabled now for automated tests.
... # arcade.run()
>>>
>>> app = MyApplication()
>>> app.run()
"""

def open_window(self, width, height):
""" Set up the window """
Expand Down
2 changes: 1 addition & 1 deletion arcade/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
VERSION = "0.0.3"
RELEASE = "0.0.3a14"
RELEASE = "0.0.3a15"
1 change: 0 additions & 1 deletion test.bat

This file was deleted.

1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ def load_tests(loader, tests, pattern):
suite.addTests(DocTestSuite('arcade.window_commands'))
suite.addTests(DocTestSuite('arcade.geometry'))
suite.addTests(DocTestSuite('arcade.sprite'))
suite.addTests(DocTestSuite('arcade.application'))
return suite

0 comments on commit 4275b39

Please sign in to comment.