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

Add backend unit tests #207

Merged
merged 1 commit into from
Jun 1, 2022
Merged

Conversation

kencx
Copy link
Contributor

@kencx kencx commented Jun 1, 2022

Related to #204. This PR adds unit tests for the functions generateRepo, getEnv and part of validate in backend.go.

It only tests part of validate as it calls exec.Command in ExecuteCommand, which can't be tested effectively unless its refactored to use interfaces and mocking, and I didn't want to risk breaking anything just yet.

@vercel
Copy link

vercel bot commented Jun 1, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
autorestic ✅ Ready (Inspect) Visit Preview Jun 1, 2022 at 10:31AM (UTC)

@cupcakearmy cupcakearmy merged commit e91b632 into cupcakearmy:master Jun 1, 2022
@kencx kencx deleted the backend_test branch June 1, 2022 14:06
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.

None yet

2 participants