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

Unittests not working in linux #38

Open
cbandera opened this issue Aug 30, 2015 · 1 comment
Open

Unittests not working in linux #38

cbandera opened this issue Aug 30, 2015 · 1 comment

Comments

@cbandera
Copy link

As sargas pointed out in Issue #10 : The unittests are not passing through when called in a ubuntu bash shell.
This should be fixed before continuing development on new features.

I have tried fixing the tests, so that they would work on my ubuntu terminal. Could someone test them out on OSX?

Here is the link to the fixed tests.

@michaeldfallen
Copy link
Owner

I've ran those and some fail on my Mac. Full test report is below. Since I use a Mac (atm) to develop if you intend to fix these they'll need to be passing on Mac before I'll merge them.

test_git_root_in_repo
test_git_root_not_in_repo
test_dot_git_location_not_in_repo
test_dot_git_location_in_repo
test_is_repo_not_in_repo
test_is_repo_in_repo
test_record_timestamp_in_repo
ASSERT:expected:<1441113529> but was:<0>
test_time_to_update_when_timestamp_is_old
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ... 
            [-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
touch: out of range or illegal time specification: [[CC]YY]MMDDhhmm[.SS]
test_not_time_to_update_when_just_recorded
ASSERT:
test_time_to_update_when_no_timestamp

Ran 10 tests.

FAILED (failures=2)
test_commits_with_no_commits
test_commits_behind_no_remote
test_commits_ahead_no_remote
test_commits_ahead_with_remote
test_commits_ahead_with_remote
test_remote_ahead_master
test_remote_behind_master
test_remote_branch_starts_with_local_branch_name
test_remote_branch_ends_with_local_branch_name
test_dont_call_remote_branch_name
ASSERT:expected:<0> but was:<       0>
test_dont_remote_if_remote_is_master
ASSERT:expected:<0> but was:<       0>
test_quiet_if_no_remote_master
test_zsh_and_bash_local_commits

Ran 13 tests.

FAILED (failures=2)
test_branch_name_in_repo
test_branch_name_not_in_repo
test_detached_from_branch
test_branch_name_returns_error
test_remote_branch_name_quiet_when_not_in_repo

ASSERT:expected:<0> but was:<       0>

Ran 5 tests.

FAILED (failures=1)
test_untracked_files
test_unstaged_modified_files
test_unstaged_deleted_files
test_staged_added_files
test_staged_modified_files
test_staged_deleted_files
test_staged_renamed_files
test_conflicted_both_changes
test_conflicted_them_changes
test_conflicted_us_changes
test_is_dirty

Ran 11 tests.

OK
test_prefix_and_suffix
test_basic_unstaged_options
test_basic_staged_options
test_conflicts

Ran 4 tests.

OK

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

No branches or pull requests

2 participants