惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
美团技术团队
Engineering at Meta
Engineering at Meta
Microsoft Security Blog
Microsoft Security Blog
I
InfoQ
云风的 BLOG
云风的 BLOG
C
Cisco Blogs
G
Google Developers Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
Recorded Future
Recorded Future
V
V2EX
Martin Fowler
Martin Fowler
The Last Watchdog
The Last Watchdog
Help Net Security
Help Net Security
S
SegmentFault 最新的问题
W
WeLiveSecurity
L
LINUX DO - 热门话题
C
CERT Recently Published Vulnerability Notes
J
Java Code Geeks
The Cloudflare Blog
AI
AI
NISL@THU
NISL@THU
Schneier on Security
Schneier on Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
H
Help Net Security
V
Vulnerabilities – Threatpost
N
News and Events Feed by Topic
U
Unit 42
P
Proofpoint News Feed
T
The Blog of Author Tim Ferriss
C
CXSECURITY Database RSS Feed - CXSecurity.com
S
Security Affairs
D
Docker
P
Privacy & Cybersecurity Law Blog
Spread Privacy
Spread Privacy
阮一峰的网络日志
阮一峰的网络日志
B
Blog RSS Feed
SecWiki News
SecWiki News
Stack Overflow Blog
Stack Overflow Blog
MongoDB | Blog
MongoDB | Blog
G
GRAHAM CLULEY
S
Schneier on Security
量子位
The GitHub Blog
The GitHub Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
博客园 - 司徒正美

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
[Hands-on] Guide to Locally Testing Athenz Before Opening a PR
Jeongwoo Kim · 2026-06-14 · via DEV Community

Jeongwoo Kim

Goal

This post provides a guide on how to run unit tests locally before submitting a Pull Request (PR) to the Athenz repository.

Prerequisite: You must have a local development environment (Java, Maven, etc.) configured to build and run Athenz.


Table of Contents

  • Goal
  • Table of Contents
  • Walkthrough
    • 1. PR Ground Rules
    • 2. Local Setup: Clone the Repository
    • 3. Dependencies Setup
  • How to Run Specific Tests
    • Test an Entire Component
    • Test a Specific Class
    • Test a Specific Method
    • Coverage Test (Jacoco)
  • Troubleshooting: Import Errors

Walkthrough

The following steps outline the process for setting up and testing Athenz locally.

1. PR Ground Rules

Please review the following repository rules before submitting a PR:

  • Use [skip ci]: If your changes do not require CI testing (e.g., documentation updates or typo fixes), add [skip ci] to your PR title to save CI resources. (Reference)
  • Pass formatting checks: You must pass code formatting tests before creating a PR. Running mvn clean install typically handles this. (Reference)

2. Local Setup: Clone the Repository

Clone the official Athenz repository and navigate into the directory:

git clone [https://github.com/AthenZ/athenz.git](https://github.com/AthenZ/athenz.git) && cd athenz

3. Dependencies Setup

[!NOTE]
Running an initial build without this flag may cause test failures due to missing dependencies. It is recommended to run a full install with -DskipTests before making any code changes.

Build the project to install the necessary packages (takes about 16 minutes):

mvn clean install -DskipTests

# [INFO] ------------------------------------------------------------------------
# [INFO] Reactor Summary for AthenZ 1.12.43-SNAPSHOT:
# [INFO]
# [INFO] AthenZ ............................................. SUCCESS [ 11.612 s]
# [INFO] rdl-gen-athenz-server .............................. SUCCESS [  1.734 s]
# [INFO] rdl-gen-athenz-go-model ............................ SUCCESS [  1.178 s]
# [INFO] rdl-gen-athenz-go-client ........................... SUCCESS [  1.020 s]
# [INFO] rdl-gen-athenz-java-model .......................... SUCCESS [  1.125 s]
# [INFO] rdl-gen-athenz-java-client ......................... SUCCESS [  1.179 s]
# [INFO] athenz-zms-core .................................... SUCCESS [  7.690 s]
# [INFO] athenz-zts-core .................................... SUCCESS [  5.397 s]
# [INFO] athenz-msd-core .................................... SUCCESS [  4.993 s]
# [INFO] athenz-auth-core ................................... SUCCESS [  4.309 s]
# [INFO] athenz-client-common ............................... SUCCESS [  1.637 s]
# [INFO] athenz-cert-refresher .............................. SUCCESS [  1.690 s]
# [INFO] athenz-zms-java-client ............................. SUCCESS [  5.229 s]
# [INFO] athenz-zts-java-client ............................. SUCCESS [  5.206 s]
# [INFO] athenz-server-common ............................... SUCCESS [  5.874 s]
# [INFO] athenz-k8s-server-common ........................... SUCCESS [  1.562 s]
# [INFO] athenz-dynamodb-client-factory ..................... SUCCESS [  1.559 s]
# [INFO] athenz-syncer-common ............................... SUCCESS [  1.866 s]
# [INFO] athenz-aws-server-common ........................... SUCCESS [  3.624 s]
# [INFO] athenz-server-gcp-common ........................... SUCCESS [  3.046 s]
# [INFO] athenz-instance-provider ........................... SUCCESS [  3.109 s]
# [INFO] athenz-server-msg-pulsar ........................... SUCCESS [  2.337 s]
# [INFO] athenz-server-notification-slack ................... SUCCESS [  2.014 s]
# [INFO] athenz-zpe-java-client ............................. SUCCESS [  1.906 s]
# [INFO] athenz-msd-java-client ............................. SUCCESS [  4.454 s]
# [INFO] athenz-gcp-zts-creds ............................... SUCCESS [  1.841 s]
# [INFO] athenz-zms-server .................................. SUCCESS [ 11.515 s]
# [INFO] athenz-zts-server .................................. SUCCESS [ 16.613 s]
# [INFO] athenz-jetty-container ............................. SUCCESS [  2.593 s]
# [INFO] athenz-auth-history-syncer ......................... SUCCESS [  5.755 s]
# [INFO] athenz-zms-aws-domain-syncer ....................... SUCCESS [  2.542 s]
# [INFO] athenz-zms-gcp-domain-syncer ....................... SUCCESS [  2.743 s]
# [INFO] zms-go-client ...................................... SUCCESS [ 28.624 s]
# [INFO] zts-go-client ...................................... SUCCESS [  2.974 s]
# [INFO] msd-go-client ...................................... SUCCESS [  2.936 s]
# [INFO] sia-go-lib ......................................... SUCCESS [01:49 min]
# [INFO] zmscli ............................................. SUCCESS [  3.878 s]
# [INFO] zmssvctoken ........................................ SUCCESS [ 13.350 s]
# [INFO] ztsclientutil ...................................... SUCCESS [  2.409 s]
# [INFO] athenzconf ......................................... SUCCESS [  1.288 s]
# [INFO] usercert ........................................... SUCCESS [  9.949 s]
# [INFO] sia-aws-ec2 ........................................ SUCCESS [04:15 min]
# [INFO] sia-aws-eks ........................................ SUCCESS [ 22.090 s]
# [INFO] sia-aws-fargate .................................... SUCCESS [  9.466 s]
# [INFO] sia-azure-vm ....................................... SUCCESS [  4.781 s]
# [INFO] sia-build-kite ..................................... SUCCESS [ 12.964 s]
# [INFO] sia-gcp-gce ........................................ SUCCESS [ 52.004 s]
# [INFO] sia-gcp-gke ........................................ SUCCESS [ 21.204 s]
# [INFO] sia-gcp-run ........................................ SUCCESS [ 20.085 s]
# [INFO] sia-github-actions ................................. SUCCESS [  5.740 s]
# [INFO] sia-harness ........................................ SUCCESS [  5.529 s]
# [INFO] sia-spacelift ...................................... SUCCESS [ 20.759 s]
# [INFO] zms-cli ............................................ SUCCESS [  3.165 s]
# [INFO] athenz-conf ........................................ SUCCESS [  1.306 s]
# [INFO] zms-domainattrs .................................... SUCCESS [  3.052 s]
# [INFO] zms-svctoken ....................................... SUCCESS [  2.400 s]
# [INFO] zms-authhistory .................................... SUCCESS [  2.145 s]
# [INFO] zpe-updater ........................................ SUCCESS [  4.181 s]
# [INFO] zts-roletoken ...................................... SUCCESS [  2.008 s]
# [INFO] zts-accesstoken .................................... SUCCESS [  2.019 s]
# [INFO] zts-idtoken ........................................ SUCCESS [  2.062 s]
# [INFO] zts-rolecert ....................................... SUCCESS [  3.681 s]
# [INFO] zts-svccert ........................................ SUCCESS [  2.051 s]
# [INFO] zts-svctoken ....................................... SUCCESS [  2.121 s]
# [INFO] zts-usercert ....................................... SUCCESS [  2.019 s]
# [INFO] msd-agent .......................................... SUCCESS [  3.766 s]
# [INFO] athenz-auth-core-nodejs ............................ SUCCESS [ 40.861 s]
# [INFO] athenz-zts-nodejs-client ........................... SUCCESS [ 13.504 s]
# [INFO] athenz-zpe-nodejs-client ........................... SUCCESS [ 15.892 s]
# [INFO] ui ................................................. SUCCESS [ 58.317 s]
# [INFO] athenz-zms ......................................... SUCCESS [  6.516 s]
# [INFO] athenz-zts ......................................... SUCCESS [  7.730 s]
# [INFO] athenz-ui .......................................... SUCCESS [ 44.331 s]
# [INFO] athenz-utils ....................................... SUCCESS [ 12.492 s]
# [INFO] ------------------------------------------------------------------------
# [INFO] BUILD SUCCESS
# [INFO] ------------------------------------------------------------------------
# [INFO] Total time:  16:10 min
# [INFO] Finished at: 2026-06-13T17:59:23+09:00
# [INFO] ------------------------------------------------------------------------

If the build fails at a certain point, you can resume it from a specific module:

mvn clean install -rf :athenz-zts-java-client


How to Run Specific Tests

Athenz contains a large test suite. Below are the commands to run specific segments of the tests based on your needs.

Test an Entire Component

To test a whole server module (e.g., zts or zms), use the following command:

mvn test -pl servers/zts

Test a Specific Class

To test a specific class file, use the -Dtest option:

mvn test -pl servers/zts -Dtest=AccessTokenRequestTest
mvn test -pl servers/zts -Dtest=ZTSImplAccessTokenTest

Test a Specific Method

To test a single method within a class, use # to specify the method name:

mvn test -pl servers/zts -Dtest=AccessTokenRequestTest#testAccessTokenRequestJWTBearer

Coverage Test (Jacoco)

To generate a Jacoco report alongside your test for coverage verification:

mvn test jacoco:report -pl servers/zts -Dtest=AccessTokenRequestTest


Troubleshooting: Import Errors

Todo: This section is a work in progress and will cover common IDE import errors and resolution steps.

mvn clean test jacoco:report -pl servers/zts -Dtest=ZTSImplAccessTokenTest

Then:

open servers/zts/target/site/jacoco/index.html
open /servers/zts/target/site/jacoco/com.yahoo.athenz.zts/ZTSImpl.html

And you can see based on the function:

# processJAGTokenExchangeRequest(ResourceContext, Principal, AccessTokenRequest, String, String)