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

Updates readme and version flag fix #16

Merged
merged 110 commits into from
Apr 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
8e471b0
Adding command line flags (still need to cleanup some of the code)
vakenbolt Jun 19, 2020
983d711
adds error message for missing pipe
vakenbolt Jun 19, 2020
c91d60d
Adds unit test for the go side of the code
vakenbolt Jun 20, 2020
1abcbb0
adds go test in dockerfile
vakenbolt Jun 20, 2020
2964a55
some code refactoring and adds more test
vakenbolt Jun 20, 2020
db12224
adds support for running go test in the CI docker file.
vakenbolt Jun 20, 2020
d472010
adds a default to the groupSize flag
vakenbolt Jun 20, 2020
72e4c9d
adds test for groupSize
vakenbolt Jun 20, 2020
67ea39b
some minor test updates
vakenbolt Jun 20, 2020
9b42ab9
more refactorings and updated test
vakenbolt Jun 20, 2020
029b0fc
updated tests and added more tests
vakenbolt Jun 21, 2020
6bda248
adds shorthand flag for the title flag
vakenbolt Jun 21, 2020
4e3da71
removed shortand tests
vakenbolt Jun 21, 2020
952431b
moved the stdin checker into the main processing block
vakenbolt Jun 21, 2020
ab892c7
updates to documentation and test
vakenbolt Jun 21, 2020
761bda5
added minor code-refactoring and fixing some broken test
vakenbolt Jun 21, 2020
d4cdf35
adds a short hand for the --groupSize flag
vakenbolt Jun 22, 2020
dcaacb7
adds AST parsing code to retrieve the filenames associated with test …
vakenbolt Jul 5, 2020
5453286
added initial code to map test names to their associated go test files.
vakenbolt Jul 6, 2020
df18e73
Adds the test file with line and col position information
vakenbolt Jul 6, 2020
03eb2f1
Merge branch 'master' of github.com:vakenbolt/go-test-report into vak…
vakenbolt Jul 6, 2020
2aecebb
code cleanup
vakenbolt Jul 6, 2020
f2cc568
added embedded assets into the binary
vakenbolt Jul 6, 2020
23ca87a
updated dockerfile to fix broken build
vakenbolt Jul 6, 2020
2774577
removed unnecessary generated code
vakenbolt Jul 7, 2020
3de66df
added verbose flag
vakenbolt Jul 7, 2020
8686697
add total time at the end of process
vakenbolt Jul 7, 2020
8248f65
removed unneeded code
vakenbolt Jul 7, 2020
4510ff3
updated readme
vakenbolt Jul 7, 2020
5195125
adds a build script for mac, linux and windows builds
vakenbolt Jul 7, 2020
e272d01
updates release build file to create the destination folders before p…
vakenbolt Jul 7, 2020
e13543b
added a little more clarity to the -groupSize usage description
vakenbolt Jul 7, 2020
cf989cb
updates template to support change the html window title in addition …
vakenbolt Jul 7, 2020
92e3300
updated readme and removed unneeded code
vakenbolt Jul 7, 2020
0b135d6
nomenclature update
vakenbolt Jul 7, 2020
060eeb5
added the embedded_assets.go file
vakenbolt Jul 7, 2020
29e4872
updates to the default test report template
vakenbolt Jul 7, 2020
50c90ea
added the generate_embedded_go_code bash script
vakenbolt Jul 7, 2020
d7f6489
moved some files around. preparing for commit to master
vakenbolt Jul 8, 2020
112683f
moved assets to the root project folder and added test duration to th…
vakenbolt Jul 8, 2020
f99c91f
tweaked the test report template
vakenbolt Jul 8, 2020
1662b03
changes default groupSize from 10 to 20.
vakenbolt Jul 9, 2020
1a46fc3
small teak to the test report ui
vakenbolt Jul 9, 2020
39a4090
updated broken test
vakenbolt Jul 9, 2020
a7d6f62
added an ellipsis to test names that are to long
vakenbolt Jul 9, 2020
120e7e7
updates the test report ui to show 'n/a' if a test was not found in t…
vakenbolt Jul 9, 2020
87a667c
Adds test execution date to test report html
vakenbolt Jul 10, 2020
a50cff4
fixes date formatted problem in test execution date
vakenbolt Jul 10, 2020
3c9ed22
Merge branch 'master' of github.com:vakenbolt/go-test-report into vak…
vakenbolt Jul 10, 2020
f9b32b1
deleted jeykll file
vakenbolt Jul 10, 2020
a6c9a56
Merge branch 'master' of github.com:vakenbolt/go-test-report into vak…
vakenbolt Jul 10, 2020
cbc72e1
adds a unit test for the TestGenerateReport function
vakenbolt Jul 10, 2020
2249be1
test updates
vakenbolt Jul 10, 2020
efb3142
updated readme
vakenbolt Jul 11, 2020
70d2ea9
updates to readme file
vakenbolt Jul 11, 2020
2fa35c7
moved some things around in the readme file
vakenbolt Jul 11, 2020
0b69732
removed unneeded image in readme
vakenbolt Jul 11, 2020
826cd49
removing old files
vakenbolt Jul 11, 2020
d897523
replacing shell scripts with makefile
vakenbolt Jul 11, 2020
91dc079
updated Dockerfile to use Makefile for builds
vakenbolt Jul 11, 2020
989ae7e
updates to the readme file
vakenbolt Jul 11, 2020
b9bab84
Removed support for 32bit version of windows binary
vakenbolt Jul 11, 2020
4dd69cd
changed default make command
vakenbolt Jul 11, 2020
ca1b1e4
adds compresion support in the buildall target in Makefile
vakenbolt Jul 11, 2020
36e6e38
added getPackageDetails as parameter to the generateReport function a…
vakenbolt Jul 11, 2020
7c1745b
added test coverage for the parseSizeFlag function
vakenbolt Jul 11, 2020
192a015
Merge branch 'master' of github.com:vakenbolt/go-test-report into vak…
vakenbolt Jul 11, 2020
20e6c72
Merge branch 'master' of github.com:vakenbolt/go-test-report into vak…
vakenbolt Jul 11, 2020
01307dd
optimized the stringreader code in the getPackageDetails function.
vakenbolt Jul 11, 2020
0c5f6a8
adds versioning
vakenbolt Jul 11, 2020
8eb752a
added sha256 checksum files inside of the tar/zip files
vakenbolt Jul 11, 2020
1eec799
added note on gmake in readme
vakenbolt Jul 11, 2020
ce25b99
editing change
vakenbolt Jul 11, 2020
3b16f01
Merge branch 'master' of github.com:vakenbolt/go-test-report into vak…
vakenbolt Jul 11, 2020
6a5a51c
code cleanup based on golint
vakenbolt Jul 11, 2020
0bfb463
simplified the generateTestReport function by breaking it up a bit
vakenbolt Jul 12, 2020
cc0b912
added more test coverage
vakenbolt Jul 12, 2020
c669db0
updates to readme
vakenbolt Jul 12, 2020
739274b
Merge branch 'master' of github.com:vakenbolt/go-test-report into vak…
vakenbolt Jul 12, 2020
0c95eb5
Merge branch 'master' of github.com:vakenbolt/go-test-report into vak…
vakenbolt Jul 12, 2020
46a8701
Merge branch 'master' of github.com:vakenbolt/go-test-report into vak…
Jul 26, 2020
255285d
Bump lodash from 4.17.15 to 4.17.19 (#7)
dependabot[bot] Jul 26, 2020
bd5909d
adds .gitignore
vakenbolt Jul 26, 2020
20b86b1
version bump to 0.9.1
vakenbolt Jul 26, 2020
568e204
tidying the Makefile and adding the 'dockertest' command with updates…
vakenbolt Jul 26, 2020
1af8a40
updated embedded assets
vakenbolt Jul 26, 2020
0c52ca0
adds newline to the coded generated in the embed_assets program
vakenbolt Jul 26, 2020
17951cf
added newline to Makefile
vakenbolt Jul 26, 2020
3224258
injecting version at build time
vakenbolt Jul 26, 2020
65ec77c
added version to ldflags in genbuild target
vakenbolt Jul 26, 2020
1b91869
updated Dockerfile and readme
vakenbolt Jul 26, 2020
50f5991
updating npm dependencies 🤦
vakenbolt Dec 1, 2020
f29e5b9
Better readability for test logs (#10)
quarckster Dec 1, 2020
81479b8
small fix to main and adds updated embedded assets
vakenbolt Dec 1, 2020
f9659a4
updates dependency
vakenbolt Feb 15, 2021
216bd9b
formatting
vakenbolt Feb 15, 2021
4fc1220
updated contributers list
vakenbolt Feb 15, 2021
79f9bb1
Merge branch 'master' of github.com:vakenbolt/go-test-report into vak…
vakenbolt Feb 15, 2021
a907171
Show skipped tests in gray color
afbjorklund Apr 20, 2021
1ce63a8
Add generated embedded assets file
afbjorklund Apr 20, 2021
524ca8a
Merge https://github.com/afbjorklund/go-test-report into vakenbolt/dev
vakenbolt Apr 26, 2021
3b450a7
Merge branch 'skipped-tests' of https://github.com/afbjorklund/go-tes…
vakenbolt Apr 26, 2021
8eecca1
Merge branch 'master' of github.com:vakenbolt/go-test-report into vak…
vakenbolt Apr 26, 2021
31e35b4
css fix in test report html file
vakenbolt Apr 26, 2021
6059261
updates version and contributors in readme
vakenbolt Apr 26, 2021
47ca1cd
fixes an edge case with custom test runners
vakenbolt Apr 26, 2021
cf39099
updates tests
vakenbolt Apr 26, 2021
cced3ce
Merge branch 'master' of github.com:vakenbolt/go-test-report into vak…
vakenbolt Apr 26, 2021
75ba5b3
simplifies versioning
vakenbolt Apr 26, 2021
b1556be
updates readme screenshots
vakenbolt Apr 26, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
VERSION := $(file < version)
MACOS := go-test-report-darwin-v$(VERSION)
LINUX := go-test-report-linux-v$(VERSION)
WINDOWS := go-test-report-windows-v$(VERSION)
Expand All @@ -8,7 +7,7 @@ MAC_DIR := release_builds/darwin-amd64/
WIN_DIR := release_builds/windows-amd64/

genbuild: gencode
go build -ldflags "-X main.version=$(VERSION)"
go build

gencode:
(cd embed_assets/;set -e;go build;./embed_assets)
Expand All @@ -23,17 +22,17 @@ buildall: genbuild
go mod verify

echo "Linux 64bit"
GOOS=linux GOARCH=amd64 go build -ldflags "-X main.version=$(VERSION)" -o release_builds/linux-amd64/
GOOS=linux GOARCH=amd64 go build -o release_builds/linux-amd64/
(cd $(LIN_DIR); shasum -a 256 go-test-report | cut -d ' ' -f 1 > $(LINUX).sha256)
(cd $(LIN_DIR); tar -czf $(LINUX).tgz go-test-report $(LINUX).sha256)

echo "Darwin (MacOS) 64bit"
GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.version=$(VERSION)" -o release_builds/darwin-amd64/
GOOS=darwin GOARCH=amd64 go build -o release_builds/darwin-amd64/
(cd $(MAC_DIR); shasum -a 256 go-test-report | cut -d ' ' -f 1 > $(MACOS).sha256)
(cd $(MAC_DIR); tar -czf $(MACOS).tgz go-test-report $(MACOS).sha256)

echo "Windows 64bit"
GOOS=windows GOARCH=amd64 go build -ldflags "-X main.version=$(VERSION)" -o release_builds/windows-amd64/
GOOS=windows GOARCH=amd64 go build -o release_builds/windows-amd64/
(cd $(WIN_DIR); shasum -a 256 go-test-report.exe | cut -d ' ' -f 1 > $(WINDOWS).sha256)
(cd $(WIN_DIR); zip -r $(WINDOWS).zip go-test-report.exe $(WINDOWS).sha256)

Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ The HTML file generated by `go-test-report` is designed to provide an easy way t

<p align="center">
<br/>
<img src="https://user-images.githubusercontent.com/1223459/87217645-2290d980-c311-11ea-9967-957c4ee8ec61.png" width="700px" style="border: 1px #cccccc solid; padding: 8px">
<img src="https://user-images.githubusercontent.com/1223459/116140607-3093c900-a69d-11eb-9f03-f5d43f224dbf.png" width="700px" style="border: 1px #cccccc solid; padding: 8px">
<br/>
<br/>
</p>
Expand All @@ -65,7 +65,7 @@ To view the tests in a particular test group, click on any of the test group ind

<p align="center">
<br/>
<img src="https://user-images.githubusercontent.com/1223459/87218203-325eec80-c316-11ea-80c9-fea015cd5343.png" width="700px" style="border: 1px #cccccc solid; padding: 8px">
<img src="https://user-images.githubusercontent.com/1223459/116140445-f5919580-a69c-11eb-922e-78e6b8487f67.png" width="700px" style="border: 1px #cccccc solid; padding: 8px">
<br/>
<br/>
</p>
Expand Down Expand Up @@ -188,4 +188,3 @@ $ gmake buildall
- Add a GitHub Star
- Suggest [new features, ideas and optimizations](https://github.com/vakenbolt/go-test-report/issues)
- [Report issues](https://github.com/vakenbolt/go-test-report/issues)

2 changes: 0 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ import (
"time"
)

var version string // value gets injected at build time (see Makefile)

type (
goTestOutputRow struct {
Time string
Expand Down
1 change: 0 additions & 1 deletion version

This file was deleted.

3 changes: 3 additions & 0 deletions version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package main

const version = "0.9.2"