this post was submitted on 27 Jul 2023
14 points (100.0% liked)

DevOps

1670 readers
1 users here now

DevOps integrates and automates the work of software development (Dev) and IT operations (Ops) as a means for improving and shortening the systems development life cycle.

Rules:

Icon base by Lorc under CC BY 3.0 with modifications to add a gradient

founded 1 year ago
MODERATORS
 

Hey guys. Curious about how you run your automated tests.

top 3 comments
sorted by: hot top controversial new old
[–] Rade0nfighter@lemmy.world 6 points 1 year ago

Lots of options here, GitHub pipelines, Jenkins etc etc - also curious to hear what others are doing!

Too many SEO spam articles with affiliate links on google πŸ˜‚

[–] MariaRomanov@lemmy.sdf.org 5 points 1 year ago (1 children)

I guess this may be standard, but I'm running unit tests as part of my CI. Integration tests that can't be mocked go in the CD pipeline. For automated UAT, I have a branch on the CD pipeline that runs on the agent after a deploy, but in order to make the agent more agnostic I am toying with the idea of running the tests on a VM or on the deployed location.

I prefer a similar workflow.

I am a major advocate of keeping CI as simple as possible, and letting build tools do the job they were built to do. Basic builds and unit/component testing. No need for overcomplicating things for the sake of "doing it all in one place".

CD is where things get dirty, and it really depends on how/what/where you are deploying.

Generally speaking, if integration testing with external systems is necessary, I like to have contract testing with these systems done during CI, then integration/e2e in an environment that mimics production (bonus points if ephemeral).