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

Test framework #212

Merged
merged 4 commits into from
Dec 26, 2015
Merged

Test framework #212

merged 4 commits into from
Dec 26, 2015

Conversation

b-ryan
Copy link
Owner

@b-ryan b-ryan commented Nov 20, 2015

Automated tests are sorely lacking from this project. I am seeking to begin them with this pull request. The scope of things to test as changes are made is just too large, so extra reassurance that nothing breaks is important.

This is a work in progress and open for feedback. The first change so far was to have the install.py script call the add_[segment]_segment functions and pass in the powerline object. This allows each segment to be imported into a unit test for testing.

TODO:

  • I need to make sure the exception handling I commented out is put into the right spot.
  • Actually write some tests

b-ryan added a commit that referenced this pull request Dec 26, 2015
@b-ryan b-ryan merged commit 71dd624 into b-ryan:master Dec 26, 2015
@b-ryan b-ryan deleted the feature/test-framework branch December 26, 2015 21:48
amtrivedi91 added a commit to amtrivedi91/powerline-shell that referenced this pull request Aug 31, 2016
amtrivedi91 added a commit to amtrivedi91/powerline-shell that referenced this pull request Aug 31, 2016
amtrivedi91 added a commit to amtrivedi91/powerline-shell that referenced this pull request Aug 31, 2016
amtrivedi91 added a commit to amtrivedi91/powerline-shell that referenced this pull request Aug 31, 2016
LeonardoGentile added a commit to LeonardoGentile/powerline-shell that referenced this pull request Sep 6, 2016
* 'master' of github.com:banga/powerline-shell: (38 commits)
  changelog
  fix unicode issue for py3
  move changelog to own file, add changelog for b-ryan#221
  no need for a ternary
  Moved all repo stats code from git.py to the base
  readme note about b-ryan#212
  convert uptime comments into test cases
  add circle.yml that installs dev_requirements.txt
  add tests for the git segment
  have the install script add each segment so the files can be imported for testing
  readme note
  Fix sys.version_info for Python<=2.6
  Fix unicode digest error on Py3
  Fix py3 ImportError by using relative import
  Try hashlib over md5 (md5 is deprecated)
  change the install command's hashbang to just python
  Docs: rm indent level in codeblock
  release note
  only include the user's theme if it is not the default
  release note
  ...

# Conflicts:
#	powerline_shell_base.py
#	segments/git.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant