Skip to content

WIP: Jest javascript test suite#1

Open
MichaelDimmitt wants to merge 10 commits into
masterfrom
jest-javascript-test-suite
Open

WIP: Jest javascript test suite#1
MichaelDimmitt wants to merge 10 commits into
masterfrom
jest-javascript-test-suite

Conversation

@MichaelDimmitt
Copy link
Copy Markdown
Collaborator

No description provided.

@MichaelDimmitt MichaelDimmitt force-pushed the jest-javascript-test-suite branch from 4ea0feb to df09624 Compare May 16, 2019 16:16
Comment thread test/rest_easy.test.js Outdated
}
catch (e){
console.log({e})
}
Copy link
Copy Markdown
Collaborator Author

@MichaelDimmitt MichaelDimmitt May 16, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here I am catching the error:

bash command sends exit code 1: "File does not exist"

command that works:

rest_easy list --targets ./.example.targets.json --log ./rest_easy.log && cat rest_easy.log

command that does not work:

rest_easy list

Maybe this should be written into a test to ensure default environment is correct. In my case default is somehow set to ~/go/bin.

rest_easy list --help 
# --targets string     JSON formatted targets file (default is ./targets.json)

I am receiving error:

File does not exist: /Users/michaeldimmitt/go/bin/targets.json, exiting.

This may be do to my gopath:

export GOPATH=$HOME/go; 
export PATH=$PATH:$GOPATH/bin

Maybe it will be useful to have a test that lets the developer know their environment is setup different than the expected setup.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we will talk about this at C&C next week if the test suite is tough to grok at the moment.

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

Successfully merging this pull request may close these issues.

1 participant