etn-ccis / blui-cli

A tool for building example repositories and handling common Brightlayer UI procedures
BSD 3-Clause "New" or "Revised" License
4 stars 3 forks source link

Add more robust tests #27

Open joebochill opened 4 years ago

joebochill commented 4 years ago

Describe the desired behavior

More robust tests in CircleCI:

Describe the current behavior

We only have unit tests for the help and default commands and e2e tests to verify that the CLI builds and can create projects in each framework.

Is this request related to a current issue?

No

huayunh commented 3 years ago

Some more test ideas: Unit tests for our custom functions, like the custom printing function, checking for the flags, checking for the file extension when ts is set

emclaug2 commented 1 year ago

I would like to clarify what some of the "Unit tests for the commands and extensions" would be in our next bug scrub so we can either add more detail to this issue or close it.

daileytj commented 1 year ago

Let's rewrite this issue to be more specific about what kinds of tests we want to have. Would be a good idea to get a code coverage report before diving into further testing.

huayunh commented 1 year ago

@emclaug2 I asked for yer

[11:29 AM] Boyle, Joseph P (...)

Unit tests checking inputs generate the correct outputs for all of our utility functions, verifying that the correct files/contents are present in the generated file (e.g., does package.json have the correct dependencies in it, does the App.tsx file have the right contents, are typescript packages installed for javascript projects, is the eslint package only installed for packages that used that flag, etc.)

[11:33 AM] Boyle, Joseph P That can be a pretty low priority issue though...the CLI may be a target for consolidation efforts / culling if we don't expect to build out additional functionality (we can just use our templates with the underlying CLIs and it's one less thing to maintain)