Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests support. Partially done. #59

Open
GoogleCodeExporter opened this issue Aug 28, 2015 · 3 comments
Open

Unit tests support. Partially done. #59

GoogleCodeExporter opened this issue Aug 28, 2015 · 3 comments
Labels
Milestone

Comments

@GoogleCodeExporter
Copy link

GoogleCodeExporter commented Aug 28, 2015

Right now most features are being tested by running the wxpython.py example and testing features manually.

Take a look at CEF unit tests:
https://bitbucket.org/chromiumembedded/cef/src/master/tests/unittests/

Create "unittests/" directory in repo's root directory.

Created unit tests runner that allows running IsolatedTest cases that are needed for some CEF testing:
https://github.com/cztomczak/pycef/blob/master/unittests/_runner.py

Original issue reported on code.google.com by czarek.t...@gmail.com on 29 May 2013 at 4:02

@cztomczak cztomczak changed the title Unit tests support GUI unit tests support Jan 26, 2016
@cztomczak cztomczak changed the title GUI unit tests support Unit tests support Feb 11, 2016
@cztomczak cztomczak added tools and removed important labels Feb 18, 2016
cztomczak added a commit that referenced this issue Sep 18, 2016
Improve shutting down cleanly with ExceptHook.

Fix issue with str/bytes passed to Debug() function (#110).
@cztomczak
Copy link
Owner

cztomczak commented Sep 18, 2016

Unit tests that test basic functionality (initialization, shutdown, browser creation, client handlers, javascript bindings and py<>js callbacks) were added in commit 80d7c5a.

On the API-index.md page there are about 400 items in total (objects, functions, settings). Currently there are 25 sub-tests in main_test.py, so that's a only about 6% coverage.

cztomczak added a commit that referenced this issue Sep 19, 2016
Display summary with real number of tests ran including sub-tests in
main_test.

Ensure that messages are coming from Javascript in OnConsoleMessage.

Automate checking for True/False asserts in ClientHandler and External.
@cztomczak cztomczak added this to the v53 milestone Feb 24, 2017
@cztomczak
Copy link
Owner

OSR unit test is available in Pull Request #375.

@cztomczak cztomczak changed the title Unit tests support Unit tests support. Partially done. Aug 17, 2018
cztomczak added a commit that referenced this issue Aug 18, 2018
Add Browser.SetAccessibilityState.
Add AccessibilityHandler (OSR mode).

Add cef.SetGlobalClientHandler.
Add osr_test.py unittest for off-screen rendering mode (#59).
Refactor main_test.py.

Update tools/apidocs.py - generate TOCs by default
Update tools/build_distrib.py - run all unit tests
@cztomczak
Copy link
Owner

Off-screen rendering tests added in rev e72609c.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants