• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wfscheper / xkcdpwd
72%
master: 86%

Build:
Build:
LAST BUILD BRANCH: build/actions
DEFAULT BRANCH: master
Repo Added 08 Mar 2018 04:56AM UTC
Files 5
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH feature/refactor-project-layout
branch: feature/refactor-project-layout
CHANGE BRANCH
x
Reset
  • feature/refactor-project-layout
  • add-coveralls
  • build/actions
  • build/github-actions
  • config-file
  • feature/capitalize-controls
  • feature/language-selection
  • feature/number-of-passphrases
  • feature/pick-separator
  • feature/word-length-filter
  • go-modules
  • master
  • tests/fix-stdout-checking
  • travis-config-change
  • v0.1.0
  • v0.1.1
  • v0.1.2
  • v0.1.3

pending completion
28

push

travis-ci

wfscheper
tRestructure project layout and add test framework

We need a way to run command-line functional tests. This adds a basic
framework based on the golden files pattern used by the dep tool. In
order for this to work, we also move command line code into
a subdirectory and pull the dictionary portion out to a top-level
xkcdpwd package. Drop cobra in favor of go flags command-line ala the
dep project, because cobra's model doesn't let us test the command-line
both in-line and as a subprocess in parallel. We want to do this so we
can get coverage metrics and functionally test the binary.

The integration tests use a testdata directory in cmd/xkcdcmd. The test
harness recursively walks that directory looking for testscase.json
files. The test name is the path from testdata to the testcase.json
file.

The json file describes how to run the tests, and if the last test
command is expected to generate an error. Optionally, a file stdout.txt
records the expected output of the commmand.

Given that xkcdpwd generates random passphrases, in order for static
files to properly express the expected output, we use a test build tag
to bake in an english dictionary of only one word.

79 of 109 relevant lines covered (72.48%)

9.14 hits per line

Relevant lines Covered
Build:
Build:
109 RELEVANT LINES 79 COVERED LINES
9.14 HITS PER LINE
Source Files on feature/refactor-project-layout
  • List 0
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
28 feature/refactor-project-layout tRestructure project layout and add test framework We need a way to run command-line functional tests. This adds a basic framework based on the golden files pattern used by the dep tool. In order for this to work, we also move command line code i... push 07 Apr 2018 01:25AM UTC wfscheper travis-ci pending completion  
26 feature/refactor-project-layout tRestructure project layout and add test framework We need a way to run command-line functional tests. This adds a basic framework based on the golden files pattern used by the dep tool. In order for this to work, we also move command line code i... push 07 Apr 2018 01:13AM UTC wfscheper travis-ci pending completion  
24 feature/refactor-project-layout tRestructure project layout and add test framework We need a way to run command-line functional tests. This adds a basic framework based on the golden files pattern used by the dep tool. In order for this to work, we also move command line code i... push 07 Apr 2018 01:07AM UTC wfscheper travis-ci pending completion  
22 feature/refactor-project-layout tRestructure project layout and add test framework We need a way to run command-line functional tests. This adds a basic framework based on the golden files pattern used by the dep tool. In order for this to work, we also move command line code i... push 07 Apr 2018 01:01AM UTC wfscheper travis-ci pending completion  
See All Builds (110)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc