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 your code #72

Open
1 of 12 tasks
edouard-lopez opened this issue Sep 13, 2016 · 6 comments
Open
1 of 12 tasks

Test your code #72

edouard-lopez opened this issue Sep 13, 2016 · 6 comments

Comments

@edouard-lopez
Copy link

edouard-lopez commented Sep 13, 2016

Please test your code using a bash framework such as bash_unit or any another you like.

This will improve the code quality and prevent regression.

The following would need to be unit-tested:

@joseluis
Copy link

I agree with @edouard-lopez that adding unit tests is important long-term. I personally like Bats and assert.sh but any would do the job. Also it would be nice to connect the repo with travis-ci for automatic testing.

Also it would be good to review the code quality with shellcheck, and fix the few issues present. Also you could to connect the repo with code-climate for automating review.

@Potherca
Copy link
Member

Just opened #112 to add tests to getdeps

@Potherca
Copy link
Member

Started work for utils in #113

@Potherca
Copy link
Member

Note to self: We should check which files caused the most issues lately and prioritize those for testing first!

@jwerle
Copy link
Member

jwerle commented Mar 31, 2022

Note to self: We should check which files caused the most issues lately and prioritize those for testing first!

yes! I've broken (and fixed) so many things 😅

@Potherca
Copy link
Member

Well, running this:

git log --oneline --stat | grep '|' | cut -d ' ' -f2 | sort | uniq -c | sort -r -h

The top 5 bash files are:

  1. 65 lib/install/install.sh
  2. 40 bpkg.sh
  3. 21 lib/init/init.sh

Limited to the last 50 commit, that is:

  1. 22 lib/install/install.sh
  2. 12 lib/init/init.sh
  3. 10 lib/show/show.sh

So I think lib/install/install.sh, bpkg.sh, lib/init/init.sh and lib/show/show.sh will have to come first...

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

No branches or pull requests

4 participants