aboutsummaryrefslogtreecommitdiff
path: root/package_test.go
AgeCommit message (Collapse)Author
2025-07-06all: replace module github.com/shuLhan/share with pakakeh.goShulhan
2023-03-07all: prefix the error in Package Remove and gitInstallShulhan
2022-02-01all: remove the flag vendorShulhan
Since vendoring is already handled by Go module, we remove this feature to minimize duplication.
2022-01-30go.mod: update all dependenciesShulhan
This changes affect code that use lib/test.Assert().
2019-06-18all: update package share from v0.6.1 to v0.7.0Shulhan
This update bring new change on how to use the ini package.
2019-03-30all: make Go command works with Go v1.12 and laterShulhan
This means turning off GO111MODULE when running Go command.
2019-03-30test: run the test functions directlyShulhan
Previously, we run each unit test in each test file using sub-test by calling it from single exported function as main test. This commit changes it to run directly, which means, we export all unit test functions, and let the "go test" run them in order.
2019-01-25package: fix test on "go install ./..." with latest Go versionShulhan
This may result in error when building with Go version < 1.12.
2018-12-13Update dependencies and fix testsShulhan
2018-09-15package: get remote branch if its emptyShulhan
2018-09-14package: simplify Go install methodShulhan
Change the parameter from instance of env to string. The goal is to decouple instance of environment from package.
2018-09-14package: simplify parameter of NewPackageShulhan
2018-09-14package: remove unneeded scan pathShulhan
2018-09-14Refactoring test to use clone from local directoryShulhan
2018-09-14Add "remote-branch" to test dataShulhan
2018-09-13Replace git and common functions with package share/lib/{git,io}Shulhan
2018-09-04[test] Do not compare result from testing package installShulhan
2018-06-05NewEnvironment: get or set user PATH from environmentShulhan
The PATH is used when running specific command, i.e. Run() and GoInstall().
2018-06-05gitUpdate: do not return if version is matched with new package versionShulhan
This will allow freeze operation to work on all packages.
2018-06-04[chore] Add copyright informationShulhan
2018-06-04Add common option "-V, --vendor" to work with vendor directoryShulhan
2018-06-04[chore] Add context to debug outputShulhan
Each debug statement is prefixed with "[X] func" where X is either ENV for debug in environment's methods or PKG for debug in package's methods.
2018-06-04NewPackage(): remove parameter vcs modeShulhan
The mode of VCS is already provided by "RepoRoot.VCS.Cmd". This changes affect on vcs mode value, from number based to string based. Previously, VCS mode git is labeled as "1", now it's labeled as VCS command "git".
2018-06-04Sync(): install missing dependenciesShulhan
2018-06-03NewPackage(): use golang tools/go/vcs to get remote URLShulhan
This will allow beku to handle custom import URL.
2018-06-03Remove git submodule for testingShulhan
Using submodule is not a good way to represent real repository, because submodule use .git as file as metadata not .git as directory. This revert commit e8593ded.
2018-05-29Fetch new package commits before updating versionShulhan
2018-05-29Add operation to exclude package from databaseShulhan
2018-05-27[test] package: check for nil before comparing with expected valueShulhan
2018-05-27package: display command directory on debug outputShulhan
2018-05-25Implement sync that rescan package in GOPATHShulhan
2018-05-23[test] Add unit test for some Env methodsShulhan
Not all methods can be tested due to some operation requiring network connection.
2018-05-21Use filepath.Join when applicableShulhan
2018-05-21Set environment as dirty after sync operation than add or update a packageShulhan
2018-05-21[chore] make syntax of variable name consistentShulhan
2018-05-21[test] package: add unit test for RemoveRequiredByShulhan
2018-05-21[test] package: add unit test for Remove, Install, and GoCleanShulhan
2018-05-20package: rename method "RunGoInstall" to "GoInstall"Shulhan
2018-05-19[test] package: add unit test for String, Update, and UpdateMissingDepShulhan
2018-05-19[test] Add unit test for package.RunGoInstallShulhan
2018-05-18[test] package: Add unit test for method loadShulhan
2018-05-18Check duplicate when adding dep, missing, or requiredShulhan
This commit change signature of push method from linkXXX to pushXXX.
2018-05-17[test] package: add unit test for linkRequiredByShulhan
2018-05-17[test] Move test initialization and common test functions to beku_testShulhan
2018-05-17[test] Add unit test for package IsEqualShulhan